Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
291029ba
Commit
291029ba
authored
Jul 14, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改toast位置
parent
b427b7d4
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
612 additions
and
43 deletions
+612
-43
HttpTool.cs
Assets/Base/UnityTool/HTTP/HttpTool.cs
+3
-1
TiXianCell.cs
Assets/Game/Main/Resource/LeeScripts/TiXianCell.cs
+19
-4
圆角矩形 1.png
Assets/Game/Main/Resource/圆角矩形 1.png
+0
-0
圆角矩形 1.png.meta
Assets/Game/Main/Resource/圆角矩形 1.png.meta
+152
-0
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+7
-7
ExchangeItem.cs
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
+3
-1
HarvestItem.cs
Assets/Game/Main/Scripts/Item/HarvestItem.cs
+3
-1
PlantMakeMoneyItem.cs
Assets/Game/Main/Scripts/Item/PlantMakeMoneyItem.cs
+2
-1
PlantTreeItem.cs
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
+9
-5
TaskItem.cs
Assets/Game/Main/Scripts/Item/TaskItem.cs
+4
-2
CarPresenter.cs
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
+3
-1
HomePresenter.cs
Assets/Game/Main/Scripts/Presenter/HomePresenter.cs
+6
-2
AdUtils.cs
Assets/Game/Main/Scripts/Utils/AdUtils.cs
+2
-1
ToastUtils.cs
Assets/Game/Main/Scripts/Utils/ToastUtils.cs
+27
-0
ToastUtils.cs.meta
Assets/Game/Main/Scripts/Utils/ToastUtils.cs.meta
+11
-0
BaiYuanredEnvelopeControl.cs
Assets/Game/Main/Scripts/View/BaiYuanredEnvelopeControl.cs
+3
-1
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+6
-2
FastPlanting.cs
Assets/Game/Main/Scripts/View/FastPlanting.cs
+6
-2
HomeInfoControl.cs
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
+1
-0
WithDrawControl.cs
Assets/Game/Main/Scripts/View/WithDrawControl.cs
+4
-2
WithdrawalEveryDayControl.cs
Assets/Game/Main/Scripts/View/WithdrawalEveryDayControl.cs
+2
-1
WithdrawalEveryDayItemControl.cs
...s/Game/Main/Scripts/View/WithdrawalEveryDayItemControl.cs
+2
-1
EveryRewardControl.cs
Assets/Game/Main/Scripts/dialog/EveryRewardControl.cs
+7
-2
EverydayWithdrawControl.cs
...cripts/dialog/EverydayWithdraw/EverydayWithdrawControl.cs
+3
-1
LottlyControl.cs
Assets/Game/Main/Scripts/dialog/LottlyControl.cs
+2
-1
PlantTreeControl.cs
Assets/Game/Main/Scripts/dialog/PlantTreeControl.cs
+5
-2
Cell.prefab
Assets/Resources/Cell.prefab
+1
-1
Toast.prefab
Assets/Resources/Toast.prefab
+310
-0
Toast.prefab.meta
Assets/Resources/Toast.prefab.meta
+7
-0
Splash.cs
Assets/Scripts/Splash/Splash.cs
+2
-1
No files found.
Assets/Base/UnityTool/HTTP/HttpTool.cs
View file @
291029ba
...
...
@@ -166,7 +166,9 @@ public class HttpTool : MonoBehaviour
if
(
response
.
status
==
105
)
{
//提示信息
ToastPlugin
.
ToastHelper
.
ShowToast
(
response
.
msg
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
response
.
msg
);
}
else
if
(
response
.
status
==
101
)
{
...
...
Assets/Game/Main/Resource/LeeScripts/TiXianCell.cs
View file @
291029ba
...
...
@@ -54,13 +54,24 @@ public class TiXianCell : BasePanel
{
case
0
:
GetControl
<
Button
>(
"btnIng"
).
gameObject
.
SetActive
(
true
);
//GetControl<Button>("btnIng").onClick.AddListener(clicking);
GetControl
<
Button
>(
"btnGo"
).
gameObject
.
SetActive
(
false
);
GetControl
<
Button
>(
"btnHad"
).
gameObject
.
SetActive
(
false
);
GetControl
<
Button
>(
"btnIng"
).
onClick
.
AddListener
(()
=>
{
DialogControl
.
Instance
.
NetWorkRequest
<
WithDrawDialogBean
>(
false
,
"app/v3/cscmnq/do_wd"
,
new
Dictionary
<
string
,
object
>()
{
{
"wdId"
,
(
int
)
info
.
id
}
},
(
obj
)
=>
{
GameObject
obj2
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
obj2
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
obj
.
reason
);
});
});
break
;
case
1
:
GetControl
<
Button
>(
"btnHad"
).
gameObject
.
SetActive
(
true
);
GetControl
<
Button
>(
"btnGo"
).
gameObject
.
SetActive
(
false
);
GetControl
<
Button
>(
"btnIng"
).
gameObject
.
SetActive
(
false
);
break
;
case
2
:
GetControl
<
Button
>(
"btnGo"
).
gameObject
.
SetActive
(
true
);
...
...
@@ -80,17 +91,20 @@ public class TiXianCell : BasePanel
EventUtils
.
OnEvent
(
"rw_zctx_click"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
obj
.
reason
);
switch
(
obj
.
status
)
{
case
1
:
ToastHelper
.
ShowToast
(
obj
.
reason
);
//ToastHelper.ShowToast(obj.reason);
return
;
case
2
:
case
3
:
ToastHelper
.
ShowToast
(
obj
.
reason
);
// ToastHelper.ShowToast(obj.reason);
return
;
case
7
:
return
;
...
...
@@ -118,6 +132,7 @@ public class TiXianCell : BasePanel
string
.
Format
(
"{0}/{1}"
,
info
.
infoList
[
i
].
current
,
info
.
infoList
[
i
].
targetNum
);
}
}
private
Coroutine
lotteryControl
;
private
void
setCountTime
(
int
?
countdown
)
{
...
...
Assets/Game/Main/Resource/圆角矩形 1.png
0 → 100644
View file @
291029ba
628 Bytes
Assets/Game/Main/Resource/圆角矩形 1.png.meta
0 → 100644
View file @
291029ba
fileFormatVersion: 2
guid: ff97a0f622dca4bedb2b00ce68479749
TextureImporter:
internalIDToNameTable:
- first:
213: 1381107880254337330
second: "\u5706\u89D2\u77E9\u5F62 1_0"
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: "\u5706\u89D2\u77E9\u5F62 1_0"
rect:
serializedVersion: 2
x: 0
y: 0
width: 352
height: 77
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 20, y: 20, z: 20, w: 20}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 2317d07bc4eaa2310800000000000000
internalID: 1381107880254337330
vertices: []
indices:
edges: []
weights: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
291029ba
...
...
@@ -850,7 +850,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 641bddf6beb8f1a4780310c66f09e7f6, type: 3}
m_Type: 0
m_PreserveAspect:
0
m_PreserveAspect:
1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
...
...
@@ -3560,7 +3560,7 @@ RectTransform:
m_GameObject: {fileID: 110549203}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1
.3, y: 1.3
, z: 1}
m_LocalScale: {x: 1
, y: 1
, z: 1}
m_Children: []
m_Father: {fileID: 1468268974}
m_RootOrder: 6
...
...
@@ -3568,7 +3568,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -80, y: 77}
m_SizeDelta: {x:
87, y: 89
}
m_SizeDelta: {x:
130, y: 130
}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &110549205
MonoBehaviour:
...
...
@@ -3589,9 +3589,9 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 0
670b20daddf0dc499cf56a16bbbd5c7
, type: 3}
m_Sprite: {fileID: 21300000, guid: 0
c520f4a549cc05449cbde3bc94a0dd9
, type: 3}
m_Type: 0
m_PreserveAspect:
0
m_PreserveAspect:
1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
...
...
@@ -4528,7 +4528,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 0670b20daddf0dc499cf56a16bbbd5c7, type: 3}
m_Type: 0
m_PreserveAspect:
0
m_PreserveAspect:
1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
...
...
@@ -47146,7 +47146,7 @@ MonoBehaviour:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d92ef970921c5af4cb23a00081748ec9, type: 3}
m_Type: 0
m_PreserveAspect:
0
m_PreserveAspect:
1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
View file @
291029ba
...
...
@@ -28,7 +28,9 @@ public class ExchangeItem : MonoBehaviour
{
if
(
bean
.
status
==
0
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"余额不足"
);
//ToastPlugin.ToastHelper.ShowToast("余额不足");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"余额不足"
);
return
;
}
EventUtils
.
OnEvent
(
"click_duihuan_goods"
);
...
...
Assets/Game/Main/Scripts/Item/HarvestItem.cs
View file @
291029ba
...
...
@@ -78,7 +78,9 @@ public class HarvestItem : MonoBehaviour
if
(
item
.
status
==
0
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"继续种植"
+
item
.
title
+
"即可领取"
);
// ToastPlugin.ToastHelper.ShowToast("继续种植"+item.title+"即可领取");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"继续种植"
+
item
.
title
+
"即可领取"
);
EventCenter
.
Broadcast
(
MyEventType
.
CLOSE_CLOCKIN_PAGE
);
}
else
...
...
Assets/Game/Main/Scripts/Item/PlantMakeMoneyItem.cs
View file @
291029ba
...
...
@@ -39,7 +39,8 @@ public class PlantMakeMoneyItem : MonoBehaviour
if
(
item
.
id
!=
1
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请根据引导种植"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"请根据引导种植"
);
return
;
}
}
...
...
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
View file @
291029ba
...
...
@@ -92,8 +92,9 @@ public class PlantTreeItem : MonoBehaviour
parms
.
Add
(
"blackBox"
,
Constant
.
Instance
.
blackbox
);
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/wd/do_wd"
,
parms
,
new
Action
<
WithDrawDialogBean
>((
bean
)
=>
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
bean
.
reason
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
bean
.
reason
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshPlantTreeWithDraw
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshFirstInfo
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
...
...
@@ -110,7 +111,9 @@ public class PlantTreeItem : MonoBehaviour
EventUtils
.
OnEvent
(
"cashout_btn_click"
);
if
(
mData
.
status
==
1
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"已经提现了"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"已经提现了"
);
}
else
{
...
...
@@ -120,8 +123,9 @@ public class PlantTreeItem : MonoBehaviour
parms
.
Add
(
"blackBox"
,
Constant
.
Instance
.
blackbox
);
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/wd/do_wd"
,
parms
,
new
Action
<
WithDrawDialogBean
>((
bean
)
=>
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
bean
.
reason
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
bean
.
reason
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshPlantTreeWithDraw
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshFirstInfo
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
...
...
Assets/Game/Main/Scripts/Item/TaskItem.cs
View file @
291029ba
...
...
@@ -151,7 +151,8 @@ public class TaskItem : MonoBehaviour
if
(
item
.
sid
==
2592
)
{
Debug
.
Log
(
"时间还没到"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"时间还没有到,待会再来试试吧"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"时间还没有到,待会再来试试吧"
);
}
EventCenter
.
Broadcast
(
MyEventType
.
CLOSE_CLOCKIN_PAGE
);
if
(
item
.
appmodel_id
==
65
)
//跳转到首页
...
...
@@ -251,7 +252,8 @@ public class TaskItem : MonoBehaviour
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"任务已完成,请明日再来~"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"任务已完成,请明日再来~"
);
}
}
}
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
View file @
291029ba
...
...
@@ -227,7 +227,9 @@ public class CarPresenter : CarContract.Presenter
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"明日可解锁"
);
//ToastPlugin.ToastHelper.ShowToast();
GameObject
toastObj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"明日可解锁"
);
}
...
...
Assets/Game/Main/Scripts/Presenter/HomePresenter.cs
View file @
291029ba
...
...
@@ -25,13 +25,17 @@ public class HomePresenter : HomeContract.Presenter
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"今日次数已用完,明天再来吧!"
);
//ToastPlugin.ToastHelper.ShowToast("今日次数已用完,明天再来吧!");
GameObject
toastObj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"今日次数已用完,明天再来吧!"
);
}
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
bean
.
msg
);
// ToastPlugin.ToastHelper.ShowToast(bean.msg);
GameObject
toastObj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
bean
.
msg
);
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
...
...
Assets/Game/Main/Scripts/Utils/AdUtils.cs
View file @
291029ba
...
...
@@ -410,7 +410,8 @@ public class AdUtils
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
bean
.
msg
);
GameObject
toastObj
=
GameObject
.
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
bean
.
msg
);
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
...
...
Assets/Game/Main/Scripts/Utils/ToastUtils.cs
0 → 100644
View file @
291029ba
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
ToastUtils
:
MonoBehaviour
{
public
Text
text
;
//public static ToastUtils Instance = null;
//public Transform Parent;
//private void Awake()
//{
// Instance = this;
//}
public
void
ShowToastUI
(
string
str
)
{
text
.
text
=
str
;
// 根据字符长度,适配窗体大小
// arg0: 字符串长度*文本字体大小,再加上边距为提示窗体的宽度
// arg1: 提示窗体高度 45 (可根据自己需求做适当修改)
// transform.sizeDelta = new Vector2(str.Length * tips.fontSize + 35, 45);
GameObject
.
Destroy
(
gameObject
,
2
);
}
}
Assets/Game/Main/Scripts/Utils/ToastUtils.cs.meta
0 → 100644
View file @
291029ba
fileFormatVersion: 2
guid: 8706edfec78ab43469bedd84691d5e51
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/View/BaiYuanredEnvelopeControl.cs
View file @
291029ba
...
...
@@ -71,7 +71,9 @@ public class BaiYuanredEnvelopeControl : MonoBehaviour
//为3时 toastDesc的内容
if
(
status
==
3
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
desc
);
// ToastPlugin.ToastHelper.ShowToast(desc);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
desc
);
return
;
}
AdUtils
.
PlayRewardAd
(
"reward_hundred"
,
new
Action
<
bool
>((
adEntity
)
=>
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
291029ba
...
...
@@ -475,7 +475,9 @@ public class DialogControl : MonoBehaviour
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"明日可直接领取存钱罐所有余额"
);
// ToastPlugin.ToastHelper.ShowToast("明日可直接领取存钱罐所有余额");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"明日可直接领取存钱罐所有余额"
);
}
}
private
int
DiamondplayNum
;
...
...
@@ -552,7 +554,9 @@ public class DialogControl : MonoBehaviour
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"次数不足,明日再来吧"
);
//ToastPlugin.ToastHelper.ShowToast("次数不足,明日再来吧");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"次数不足, 明日再来吧"
);
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
...
...
Assets/Game/Main/Scripts/View/FastPlanting.cs
View file @
291029ba
...
...
@@ -57,11 +57,15 @@ public class FastPlanting : SingletonMono<FastPlanting>
{
if
(
ifLocking
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"没有地方种菜了,快去解锁土地吧"
);
// ToastPlugin.ToastHelper.ShowToast("没有地方种菜了,快去解锁土地吧");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"没有地方种菜了,快去解锁土地吧"
);
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"最多只能同时种植6颗蔬菜哦"
);
// ToastPlugin.ToastHelper.ShowToast("最多只能同时种植6颗蔬菜哦");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"最多只能同时种植6颗蔬菜哦"
);
}
}
}
...
...
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
View file @
291029ba
...
...
@@ -291,6 +291,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
if
(
DoubleTime
>
0
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"再等"
+
DoubleTime
+
"S"
);
}
else
{
...
...
Assets/Game/Main/Scripts/View/WithDrawControl.cs
View file @
291029ba
...
...
@@ -195,7 +195,8 @@ public class WithDrawControl : MonoBehaviour
{
if
(
status
==
1
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"已经提现过了"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"已经提现过了"
);
}
else
{
...
...
@@ -206,7 +207,8 @@ public class WithDrawControl : MonoBehaviour
parms
.
Add
(
"blackBox"
,
Constant
.
Instance
.
blackbox
);
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/wd/do_wd"
,
parms
,
new
Action
<
WithDrawDialogBean
>((
bean
)
=>
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
bean
.
reason
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
bean
.
reason
);
GetWithDrawPageInfo
();
EventCenter
.
Broadcast
(
MyEventType
.
RefreshFirstInfo
);
...
...
Assets/Game/Main/Scripts/View/WithdrawalEveryDayControl.cs
View file @
291029ba
...
...
@@ -280,7 +280,8 @@ public class WithdrawalEveryDayControl : MonoBehaviour
EventUtils
.
OnEvent
(
"user_cashOut"
,
"提现成功"
);
}
getHeartList
();
ToastPlugin
.
ToastHelper
.
ShowToast
(
result
.
reason
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
result
.
reason
);
//close();
}
}),
new
Action
<
string
,
string
>((
code
,
mes
)
=>
{
}));
...
...
Assets/Game/Main/Scripts/View/WithdrawalEveryDayItemControl.cs
View file @
291029ba
...
...
@@ -53,7 +53,8 @@ public class WithdrawalEveryDayItemControl : MonoBehaviour
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"已经领取过了"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"已经领取过了"
);
}
}
}
Assets/Game/Main/Scripts/dialog/EveryRewardControl.cs
View file @
291029ba
...
...
@@ -274,7 +274,9 @@ public class EveryRewardControl : MonoBehaviour
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"剩余次数不足"
);
// ToastPlugin.ToastHelper.ShowToast("剩余次数不足");
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"剩余次数不足"
);
}
}
...
...
@@ -294,7 +296,10 @@ public class EveryRewardControl : MonoBehaviour
EventUtils
.
OnEvent
(
"user_cashOut"
,
"提现成功"
);
}
getEverydayRewardData
();
ToastPlugin
.
ToastHelper
.
ShowToast
(
result
.
reason
);
// ToastPlugin.ToastHelper.ShowToast(result.reason);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
result
.
reason
);
//close();
}
}),
new
Action
<
string
,
string
>((
code
,
mes
)
=>
{
}));
...
...
Assets/Game/Main/Scripts/dialog/EverydayWithdraw/EverydayWithdrawControl.cs
View file @
291029ba
...
...
@@ -106,7 +106,9 @@ public class EverydayWithdrawControl : MonoBehaviour
HttpTool
.
Instance
.
_Post
(
"app/v2/game/module/hearts/wd"
,
parameters
,
new
Action
<
EverydayWithdrawBean
>((
result
)
=>
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
result
.
reason
);
//ToastPlugin.ToastHelper.ShowToast(result.reason);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
result
.
reason
);
getEverydayWithdrawData
();
if
(
result
.
status
==
5
)
{
...
...
Assets/Game/Main/Scripts/dialog/LottlyControl.cs
View file @
291029ba
...
...
@@ -149,7 +149,8 @@ public class LottlyControl : MonoBehaviour
if
(
lottlyCount
<=
0
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"当前时间段抽奖次数已用完"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"当前时间段抽奖次数已用完"
);
return
;
}
//ifchoujiang = true;
...
...
Assets/Game/Main/Scripts/dialog/PlantTreeControl.cs
View file @
291029ba
...
...
@@ -232,11 +232,14 @@ public class PlantTreeControl : MonoBehaviour
{
if
(
CashOut
.
transform
.
Find
(
"imgProgress"
).
GetComponent
<
Image
>().
fillAmount
==
1
)
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"视频质量不足,请继续观看视频!"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"视频质量不足,请继续观看视频!"
);
}
else
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"满300元才能提现哦!"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"满300元才能提现哦!"
);
}
});
}
...
...
Assets/Resources/Cell.prefab
View file @
291029ba
...
...
@@ -1170,7 +1170,7 @@ MonoBehaviour:
m_PressedTrigger
:
Pressed
m_SelectedTrigger
:
Selected
m_DisabledTrigger
:
Disabled
m_Interactable
:
0
m_Interactable
:
1
m_TargetGraphic
:
{
fileID
:
6429852790312083160
}
m_OnClick
:
m_PersistentCalls
:
...
...
Assets/Resources/Toast.prefab
0 → 100644
View file @
291029ba
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!1
&1483529529345924170
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
2639157932317873318
}
-
component
:
{
fileID
:
3832993543004887217
}
-
component
:
{
fileID
:
1785855717761009355
}
-
component
:
{
fileID
:
327853692935515266
}
-
component
:
{
fileID
:
342097406340159749
}
m_Layer
:
5
m_Name
:
Image
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&2639157932317873318
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1483529529345924170
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
5711819539857619335
}
m_Father
:
{
fileID
:
2955740988171764455
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0.5
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
80
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&3832993543004887217
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1483529529345924170
}
m_CullTransparentMesh
:
0
---
!u!114
&1785855717761009355
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1483529529345924170
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
fe87c0e1cc204ed48ad3b37840f39efc
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_Sprite
:
{
fileID
:
1381107880254337330
,
guid
:
ff97a0f622dca4bedb2b00ce68479749
,
type
:
3
}
m_Type
:
1
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
m_UseSpriteMesh
:
0
m_PixelsPerUnitMultiplier
:
1
---
!u!114
&327853692935515266
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1483529529345924170
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
30649d3a9faa99c48a7b1166b86bf2a0
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Padding
:
m_Left
:
50
m_Right
:
50
m_Top
:
0
m_Bottom
:
0
m_ChildAlignment
:
4
m_Spacing
:
0
m_ChildForceExpandWidth
:
0
m_ChildForceExpandHeight
:
0
m_ChildControlWidth
:
1
m_ChildControlHeight
:
0
m_ChildScaleWidth
:
0
m_ChildScaleHeight
:
0
---
!u!114
&342097406340159749
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1483529529345924170
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
3245ec927659c4140ac4f8d17403cc18
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_HorizontalFit
:
2
m_VerticalFit
:
0
---
!u!1
&3259234546125329684
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
5711819539857619335
}
-
component
:
{
fileID
:
1302193992660313642
}
-
component
:
{
fileID
:
1562234745043335690
}
m_Layer
:
5
m_Name
:
lab_toast
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&5711819539857619335
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3259234546125329684
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
2639157932317873318
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
40
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!222
&1302193992660313642
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3259234546125329684
}
m_CullTransparentMesh
:
0
---
!u!114
&1562234745043335690
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3259234546125329684
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
5f7201a12d95ffc409449d95f23cf332
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_FontData
:
m_Font
:
{
fileID
:
12800000
,
guid
:
da1eea3279d21de4185dc3ca8e28341e
,
type
:
3
}
m_FontSize
:
28
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
0
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
---
!u!1
&3640720891035153455
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
2955740988171764455
}
-
component
:
{
fileID
:
4688192418482160936
}
-
component
:
{
fileID
:
5833281796354901856
}
-
component
:
{
fileID
:
9060520740540732225
}
-
component
:
{
fileID
:
5040853610364337834
}
m_Layer
:
5
m_Name
:
Toast
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&2955740988171764455
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3640720891035153455
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_Children
:
-
{
fileID
:
2639157932317873318
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
0
}
m_AnchorMax
:
{
x
:
0
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0
,
y
:
0
}
---
!u!223
&4688192418482160936
Canvas
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3640720891035153455
}
m_Enabled
:
1
serializedVersion
:
3
m_RenderMode
:
0
m_Camera
:
{
fileID
:
0
}
m_PlaneDistance
:
100
m_PixelPerfect
:
0
m_ReceivesEvents
:
1
m_OverrideSorting
:
0
m_OverridePixelPerfect
:
0
m_SortingBucketNormalizedSize
:
0
m_AdditionalShaderChannelsFlag
:
0
m_SortingLayerID
:
0
m_SortingOrder
:
16
m_TargetDisplay
:
0
---
!u!114
&5833281796354901856
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3640720891035153455
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
0cd44c1031e13a943bb63640046fad76
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_UiScaleMode
:
1
m_ReferencePixelsPerUnit
:
100
m_ScaleFactor
:
1
m_ReferenceResolution
:
{
x
:
750
,
y
:
1334
}
m_ScreenMatchMode
:
0
m_MatchWidthOrHeight
:
0
m_PhysicalUnit
:
3
m_FallbackScreenDPI
:
96
m_DefaultSpriteDPI
:
96
m_DynamicPixelsPerUnit
:
1
---
!u!114
&9060520740540732225
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3640720891035153455
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
dc42784cf147c0c48a680349fa168899
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_IgnoreReversedGraphics
:
1
m_BlockingObjects
:
0
m_BlockingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
---
!u!114
&5040853610364337834
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
3640720891035153455
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
8706edfec78ab43469bedd84691d5e51
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
text
:
{
fileID
:
1562234745043335690
}
Assets/Resources/Toast.prefab.meta
0 → 100644
View file @
291029ba
fileFormatVersion: 2
guid: 4cdbf00ff2f914df696df62d390ee89d
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/Splash/Splash.cs
View file @
291029ba
...
...
@@ -316,7 +316,8 @@ public class Splash : MonoBehaviour
else
{
EventUtils
.
OnEvent
(
"login_fail"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"登录失败"
);
GameObject
toastObj
=
Instantiate
(
Resources
.
Load
<
GameObject
>(
"Toast"
));
toastObj
.
GetComponent
<
ToastUtils
>().
ShowToastUI
(
"登录失败"
);
//EventUtils.OnEvent("user_login_failed", "微信登录失败");
}
}));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment