Commit 9f3f0871 authored by zxhljwl's avatar zxhljwl

修改

parent 974f346c
fileFormatVersion: 2
guid: b54c07bde9fe48f4eb89bc6764b13ec7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f62bbfac28f026f43bddfb7f7b01491e
TextureImporter:
internalIDToNameTable: []
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: 1
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 3e20780ea427a23498e349914b5bd1e6
TextureImporter:
internalIDToNameTable: []
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: 1
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0b1f57a4f68cb324ea0a11b28a409fe3
TextureImporter:
internalIDToNameTable: []
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: 1
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7b2e916010939264cbaeabb6d59fa5c4
TextureImporter:
internalIDToNameTable: []
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: 1
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 360d9145530cf2549a278607d0aad462
TextureImporter:
internalIDToNameTable: []
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: 1
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
...@@ -5622,7 +5622,7 @@ RectTransform: ...@@ -5622,7 +5622,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -269} m_AnchoredPosition: {x: 0, y: -257}
m_SizeDelta: {x: 464, y: 58.400818} m_SizeDelta: {x: 464, y: 58.400818}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &326292426 --- !u!114 &326292426
...@@ -7866,10 +7866,10 @@ RectTransform: ...@@ -7866,10 +7866,10 @@ RectTransform:
m_Father: {fileID: 300181109} m_Father: {fileID: 300181109}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 93.36, y: -45.84}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 126.72, y: 31.68}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &409306806 --- !u!114 &409306806
MonoBehaviour: MonoBehaviour:
...@@ -18123,7 +18123,7 @@ RectTransform: ...@@ -18123,7 +18123,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 664, y: 720} m_SizeDelta: {x: 720, y: 653}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &984387229 --- !u!114 &984387229
MonoBehaviour: MonoBehaviour:
...@@ -18144,7 +18144,7 @@ MonoBehaviour: ...@@ -18144,7 +18144,7 @@ MonoBehaviour:
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_Sprite: {fileID: 21300000, guid: 1bc6550caee92534eafd254e79084d70, type: 3} m_Sprite: {fileID: 21300000, guid: 8629157f97fc4db4f9160d29b783836a, type: 3}
m_Type: 0 m_Type: 0
m_PreserveAspect: 0 m_PreserveAspect: 0
m_FillCenter: 1 m_FillCenter: 1
...@@ -21246,7 +21246,7 @@ RectTransform: ...@@ -21246,7 +21246,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -162} m_AnchoredPosition: {x: 0, y: -174}
m_SizeDelta: {x: 543, y: 135} m_SizeDelta: {x: 543, y: 135}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1203470291 --- !u!114 &1203470291
...@@ -30216,7 +30216,7 @@ GameObject: ...@@ -30216,7 +30216,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &1818874221 --- !u!224 &1818874221
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -30236,7 +30236,7 @@ RectTransform: ...@@ -30236,7 +30236,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 87} m_AnchoredPosition: {x: 0, y: 55}
m_SizeDelta: {x: 112, y: 142} m_SizeDelta: {x: 112, y: 142}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1818874222 --- !u!114 &1818874222
...@@ -30964,10 +30964,10 @@ RectTransform: ...@@ -30964,10 +30964,10 @@ RectTransform:
m_Father: {fileID: 300181109} m_Father: {fileID: 300181109}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 30, y: -97.04}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 30.720001}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1853878469 --- !u!114 &1853878469
MonoBehaviour: MonoBehaviour:
...@@ -31316,7 +31316,7 @@ GameObject: ...@@ -31316,7 +31316,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 0 m_IsActive: 1
--- !u!224 &1869528321 --- !u!224 &1869528321
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -31333,7 +31333,7 @@ RectTransform: ...@@ -31333,7 +31333,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 61} m_AnchoredPosition: {x: 0, y: 30}
m_SizeDelta: {x: 146, y: 185} m_SizeDelta: {x: 146, y: 185}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1869528322 --- !u!114 &1869528322
......
...@@ -21,7 +21,7 @@ public class DialogControl : MonoBehaviour ...@@ -21,7 +21,7 @@ public class DialogControl : MonoBehaviour
{ {
EventCenter.AddListener<VideoStatusBean>(MyEventType.WATET_DIALOG, OnUseWaterByVideo); EventCenter.AddListener<VideoStatusBean>(MyEventType.WATET_DIALOG, OnUseWaterByVideo);
EventCenter.AddListener<RewardBean>(MyEventType.REWARD_DIALOG, OnOpenRewardDialog); EventCenter.AddListener<RewardBean>(MyEventType.REWARD_DIALOG, OnOpenRewardDialog);
EventCenter.AddListener(MyEventType.DOUBLE_DIALOG, OnUseDoubleCoin); EventCenter.AddListener(MyEventType.DOUBLE_DIALOG, OnClickShowDoubleDialog);
EventCenter.AddListener(MyEventType.ALL_SPEED_DIALOG, OnUseAllSpeed); EventCenter.AddListener(MyEventType.ALL_SPEED_DIALOG, OnUseAllSpeed);
EventCenter.AddListener<WithDrawDialogBean>(MyEventType.WITHDRAW_DIALOG, OnWithDrawDialog); EventCenter.AddListener<WithDrawDialogBean>(MyEventType.WITHDRAW_DIALOG, OnWithDrawDialog);
} }
...@@ -31,7 +31,7 @@ public class DialogControl : MonoBehaviour ...@@ -31,7 +31,7 @@ public class DialogControl : MonoBehaviour
{ {
EventCenter.RemoveListener<VideoStatusBean>(MyEventType.WATET_DIALOG, OnUseWaterByVideo); EventCenter.RemoveListener<VideoStatusBean>(MyEventType.WATET_DIALOG, OnUseWaterByVideo);
EventCenter.RemoveListener<RewardBean>(MyEventType.REWARD_DIALOG, OnOpenRewardDialog); EventCenter.RemoveListener<RewardBean>(MyEventType.REWARD_DIALOG, OnOpenRewardDialog);
EventCenter.RemoveListener(MyEventType.DOUBLE_DIALOG, OnUseDoubleCoin); EventCenter.RemoveListener(MyEventType.DOUBLE_DIALOG, OnClickShowDoubleDialog);
EventCenter.RemoveListener(MyEventType.ALL_SPEED_DIALOG, OnUseAllSpeed); EventCenter.RemoveListener(MyEventType.ALL_SPEED_DIALOG, OnUseAllSpeed);
EventCenter.RemoveListener<WithDrawDialogBean>(MyEventType.WITHDRAW_DIALOG, OnWithDrawDialog); EventCenter.RemoveListener<WithDrawDialogBean>(MyEventType.WITHDRAW_DIALOG, OnWithDrawDialog);
} }
...@@ -171,36 +171,15 @@ public class DialogControl : MonoBehaviour ...@@ -171,36 +171,15 @@ public class DialogControl : MonoBehaviour
})); }));
} }
/// <summary> /// <summary>
/// 显示使用双倍收益弹窗 /// 显示双倍收益弹窗
/// </summary> /// </summary>
private void OnUseDoubleCoin() public void OnClickShowDoubleDialog()
{
parm.Clear();
parm["slot"] = "doubling_reward";
HttpTool.Instance._Get("app/v1/game/reward_video/status", parm, new Action<VideoStatusBean>((bean) =>
{
if(bean.status == 1)
{ {
useDoubleCoinByVideoNumTv.text = "今天剩余"+bean.playNum+"次"; AudioUtils.ins.PlayBtnAudio();
doubleDialogObj.SetActive(true); doubleDialogObj.SetActive(true);
AdUtils.ShowFeedAd("double");
}
else
{
ToastPlugin.ToastHelper.ShowToast(bean.msg);
} }
}), new Action<string, string>((code, errMsg) =>
{
Debug.unityLogger.Log("双倍收益检查 请求失败" + code + errMsg);
}));
}
/// <summary> /// <summary>
/// 关闭双倍收益弹窗 /// 关闭双倍收益弹窗
/// </summary> /// </summary>
...@@ -211,32 +190,6 @@ public class DialogControl : MonoBehaviour ...@@ -211,32 +190,6 @@ public class DialogControl : MonoBehaviour
AdUtils.CloseFeedAd(); AdUtils.CloseFeedAd();
} }
/// <summary>
/// 使用双倍收益
/// </summary>
public void OnClcikUseDoubleCoin()
{
OnClickCloseDoubleDialog();
AdUtils.PlayRewardAd("doubling_reward", new Action<bool>((cb) =>
{
if (cb)
{
HttpTool.Instance._Post("app/v1/game/fkqcw/doubling/incr_time_by_video", parm, new Action<VideoStatusBean>((bean) =>
{
EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
}), new Action<string, string>((code, errMsg) =>
{
Debug.unityLogger.Log("双倍收益 请求失败" + code + errMsg);
}));
}
}));
}
/// <summary> /// <summary>
/// 关闭使用加速剂弹窗 /// 关闭使用加速剂弹窗
/// </summary> /// </summary>
......
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DoubleIncomeDialog : MonoBehaviour
{
public Text useDoubleCoinByVideoNumTv;
public int doubleCountdownSecond;
void OnEnable()
{
OnUseDoubleCoin();
}
/// <summary>
/// 显示使用双倍收益弹窗
/// </summary>
private void OnUseDoubleCoin()
{
//获取双倍收益倒计时
HttpTool.Instance._Get("app/v1/game/fkqcw/parking/info", null, new Action<ParkInfoBean>((bean) =>
{
if (null != bean) {
if (bean.doubleCountdownSecond > 0) {
}
}
}), new Action<string, string>((code, errMsg) =>
{
Debug.unityLogger.Log("Get 请求失败" + code + errMsg);
}));
//获取剩余次数
Dictionary<string, object> parm = new Dictionary<string, object>();
parm["slot"] = "doubling_reward";
HttpTool.Instance._Get("app/v1/game/reward_video/status", parm, new Action<VideoStatusBean>((bean) =>
{
if (bean.status == 1)
{
useDoubleCoinByVideoNumTv.text = "剩余次数:" + bean.playNum + "次";
AdUtils.ShowFeedAd("double");
}
else
{
ToastPlugin.ToastHelper.ShowToast(bean.msg);
}
}), new Action<string, string>((code, errMsg) =>
{
Debug.unityLogger.Log("双倍收益检查 请求失败" + code + errMsg);
}));
}
/// <summary>
/// 使用双倍收益
/// </summary>
public void OnClcikUseDoubleCoin()
{
GameObject.Find("Dialog").GetComponent<DialogControl>().OnClickCloseDoubleDialog();
AdUtils.PlayRewardAd("doubling_reward", new Action<bool>((cb) =>
{
if (cb)
{
HttpTool.Instance._Post("app/v1/game/fkqcw/doubling/incr_time_by_video", null, new Action<VideoStatusBean>((bean) =>
{
EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
}), new Action<string, string>((code, errMsg) =>
{
Debug.unityLogger.Log("双倍收益 请求失败" + code + errMsg);
}));
}
}));
}
}
fileFormatVersion: 2
guid: 9ebe6b0d02cd99445a7eed6331d9522a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
...@@ -62,7 +62,6 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View ...@@ -62,7 +62,6 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
{ {
EventCenter.Broadcast(MyEventType.DOUBLE_DIALOG); EventCenter.Broadcast(MyEventType.DOUBLE_DIALOG);
} }
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment