Commit cecd01e7 authored by maxiaoliang's avatar maxiaoliang

修改bug

parent e56317ea
fileFormatVersion: 2
guid: 62d1c1fa98be64555b74d41268d96b0a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2 fileFormatVersion: 2
guid: 0f5b25d95f2674989a82d61f6d600c9b guid: 2554db4264a75446eb5eb9b83dfc3b77
TextureImporter: TextureImporter:
internalIDToNameTable: [] internalIDToNameTable: []
externalObjects: {} externalObjects: {}
......
fileFormatVersion: 2
guid: 6ddaacafbc0d648bb9c2770b82bde4f5
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: f364fb4943be14474aa28348e03d64f9
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:
...@@ -7213,14 +7213,15 @@ RectTransform: ...@@ -7213,14 +7213,15 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children:
- {fileID: 2068242625}
m_Father: {fileID: 1776466864} m_Father: {fileID: 1776466864}
m_RootOrder: 13 m_RootOrder: 13
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: -143, y: -23} m_AnchoredPosition: {x: -143, y: -20.6}
m_SizeDelta: {x: 124, y: 118} m_SizeDelta: {x: 126, y: 123}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!95 &244231223 --- !u!95 &244231223
Animator: Animator:
...@@ -8823,9 +8824,9 @@ RectTransform: ...@@ -8823,9 +8824,9 @@ RectTransform:
m_Father: {fileID: 1548415916} m_Father: {fileID: 1548415916}
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: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 355, y: -72.5} m_AnchoredPosition: {x: 355, y: 0}
m_SizeDelta: {x: 710, y: 0} m_SizeDelta: {x: 710, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &300181110 --- !u!114 &300181110
...@@ -19182,7 +19183,7 @@ RectTransform: ...@@ -19182,7 +19183,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} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 833} m_AnchoredPosition: {x: 0, y: 887}
m_SizeDelta: {x: 100, y: 100} m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &584560495 --- !u!114 &584560495
...@@ -58737,6 +58738,135 @@ CanvasRenderer: ...@@ -58737,6 +58738,135 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1885306645} m_GameObject: {fileID: 1885306645}
m_CullTransparentMesh: 0 m_CullTransparentMesh: 0
--- !u!1 &1891798942
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1891798943}
- component: {fileID: 1891798946}
- component: {fileID: 1891798945}
- component: {fileID: 1891798944}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1891798943
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1891798942}
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: 5414249952764383350}
m_RootOrder: 2
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: -101.7, y: -9.8}
m_SizeDelta: {x: 121, y: 101}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1891798944
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1891798942}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1891798945}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 5414249952764383351}
m_MethodName: clickhongbao
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1891798945
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1891798942}
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: 21300000, guid: f364fb4943be14474aa28348e03d64f9, type: 3}
m_Type: 0
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!222 &1891798946
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1891798942}
m_CullTransparentMesh: 0
--- !u!1 &1897022136 --- !u!1 &1897022136
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -62926,7 +63056,7 @@ MonoBehaviour: ...@@ -62926,7 +63056,7 @@ MonoBehaviour:
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_Sprite: {fileID: 21300000, guid: 0f5b25d95f2674989a82d61f6d600c9b, type: 3} m_Sprite: {fileID: 21300000, guid: 6ddaacafbc0d648bb9c2770b82bde4f5, type: 3}
m_Type: 0 m_Type: 0
m_PreserveAspect: 0 m_PreserveAspect: 0
m_FillCenter: 1 m_FillCenter: 1
...@@ -63225,6 +63355,100 @@ MonoBehaviour: ...@@ -63225,6 +63355,100 @@ MonoBehaviour:
m_StringArgument: m_StringArgument:
m_BoolArgument: 0 m_BoolArgument: 0
m_CallState: 2 m_CallState: 2
--- !u!1 &2068242624
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2068242625}
- component: {fileID: 2068242628}
- component: {fileID: 2068242627}
- component: {fileID: 2068242626}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2068242625
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068242624}
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: 244231222}
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: 24.6, y: 80.4}
m_SizeDelta: {x: 77, y: 44}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!95 &2068242626
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068242624}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 0f0878ab915d14de780ded9fde35c7b4, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!114 &2068242627
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068242624}
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: 21300000, guid: 2554db4264a75446eb5eb9b83dfc3b77, type: 3}
m_Type: 0
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!222 &2068242628
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068242624}
m_CullTransparentMesh: 0
--- !u!1 &2068689944 --- !u!1 &2068689944
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -77112,7 +77336,7 @@ GameObject: ...@@ -77112,7 +77336,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!222 &5414249951623798312 --- !u!222 &5414249951623798312
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -77243,7 +77467,7 @@ GameObject: ...@@ -77243,7 +77467,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 &5414249951683107037 --- !u!224 &5414249951683107037
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -77447,6 +77671,7 @@ RectTransform: ...@@ -77447,6 +77671,7 @@ RectTransform:
m_Children: m_Children:
- {fileID: 5414249951683107037} - {fileID: 5414249951683107037}
- {fileID: 5414249951399452514} - {fileID: 5414249951399452514}
- {fileID: 1891798943}
m_Father: {fileID: 716226832} m_Father: {fileID: 716226832}
m_RootOrder: 12 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -77473,6 +77698,7 @@ MonoBehaviour: ...@@ -77473,6 +77698,7 @@ MonoBehaviour:
Pic2: {fileID: 0} Pic2: {fileID: 0}
IsRunning: 0 IsRunning: 0
IsOpen: 0 IsOpen: 0
imghongbao: {fileID: 1891798942}
--- !u!222 &5414249952870874232 --- !u!222 &5414249952870874232
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -30,9 +30,10 @@ public class ExchangeItem : MonoBehaviour ...@@ -30,9 +30,10 @@ public class ExchangeItem : MonoBehaviour
Dictionary<string, object> parm = new Dictionary<string, object>(); Dictionary<string, object> parm = new Dictionary<string, object>();
parm.Clear(); parm.Clear();
parm.Add("id", bean.id); parm.Add("id", bean.id);
HttpTool.Instance._Post("app/v1/game/module/exchange/choose", parm, new Action<CaoMeiListBean>((bean) => HttpTool.Instance._Post("app/v1/game/module/exchange/choose", parm, new Action<GoodsBean>((bean) =>
{ {
// setItemData(bean); // setItemData(bean);
FindObjectOfType<DialogControl>().ShowRealAwardsWinDialog().SetUpSubviews(bean.goods.img,bean.goods.name);
}), new Action<string, string>((code, errMsg) => }), new Action<string, string>((code, errMsg) =>
{ {
......
...@@ -128,7 +128,7 @@ public class PlantTreeItem : MonoBehaviour ...@@ -128,7 +128,7 @@ public class PlantTreeItem : MonoBehaviour
//EventCenter.Broadcast(MyEventType.WITHDRAW_DIALOG, bean); //EventCenter.Broadcast(MyEventType.WITHDRAW_DIALOG, bean);
// 0.3元提现后, 直接弹出实物奖励页面 // 0.3元提现后, 直接弹出实物奖励页面
if (mData.id == 1) if (mData.id == 1&&mData.status==1)
{ {
FindObjectOfType<DialogControl>().closePlantTreeWithDrawDialog(); FindObjectOfType<DialogControl>().closePlantTreeWithDrawDialog();
......
...@@ -29,6 +29,17 @@ public class ChouTiDongHua : MonoBehaviour ...@@ -29,6 +29,17 @@ public class ChouTiDongHua : MonoBehaviour
public bool IsOpen = false; public bool IsOpen = false;
private List<RectTransform> ObjList = new List<RectTransform>(); private List<RectTransform> ObjList = new List<RectTransform>();
public GameObject imghongbao;
public void clickhongbao() {
if (IsOpen)
{
Close();
}
else
{
Open();
}
}
...@@ -67,6 +78,9 @@ public class ChouTiDongHua : MonoBehaviour ...@@ -67,6 +78,9 @@ public class ChouTiDongHua : MonoBehaviour
public void Open() public void Open()
{ {
imghongbao.SetActive(false);
Pic1.gameObject.SetActive(true);
Pic2.gameObject.SetActive(true);
if (IsRunning) if (IsRunning)
return; return;
Show(); Show();
...@@ -75,6 +89,7 @@ public class ChouTiDongHua : MonoBehaviour ...@@ -75,6 +89,7 @@ public class ChouTiDongHua : MonoBehaviour
public void Close() public void Close()
{ {
if (IsRunning) if (IsRunning)
return; return;
Hide(); Hide();
...@@ -131,6 +146,9 @@ public class ChouTiDongHua : MonoBehaviour ...@@ -131,6 +146,9 @@ public class ChouTiDongHua : MonoBehaviour
Pic1.GetComponent<Image>().fillAmount = Pic1StartValue; Pic1.GetComponent<Image>().fillAmount = Pic1StartValue;
IsRunning = false; IsRunning = false;
IsOpen = false; IsOpen = false;
imghongbao.SetActive(true);
Pic1.gameObject.SetActive(false);
Pic2.gameObject.SetActive(false);
} }
private Queue<RectTransform> TempQueue = new Queue<RectTransform>(); private Queue<RectTransform> TempQueue = new Queue<RectTransform>();
......
...@@ -8,20 +8,10 @@ public class PlantTreeControl : MonoBehaviour ...@@ -8,20 +8,10 @@ public class PlantTreeControl : MonoBehaviour
public GameObject content, twocontent, plantItemPrfab,item2,item3; public GameObject content, twocontent, plantItemPrfab,item2,item3;
public GameObject onepage, twopage, threepage; public GameObject onepage, twopage, threepage;
public GameObject scrollview1, scrollview2; public GameObject scrollview1, scrollview2;
private int index=1; //private int index=1;
public void OnEnable() public void OnEnable()
{ {
if (index == 1) clickone();
{
getWithDrawData();
}else if (index == 2)
{
getExchangeListData();
}
else
{
getRecordLog();
}
} }
//private void Awake() //private void Awake()
//{ //{
...@@ -71,8 +61,6 @@ public class PlantTreeControl : MonoBehaviour ...@@ -71,8 +61,6 @@ public class PlantTreeControl : MonoBehaviour
} }
private void InitThreeData(List<GoodsBean> bean) private void InitThreeData(List<GoodsBean> bean)
{
if (bean != null && bean.Count > 0)
{ {
int num = content.transform.childCount; int num = content.transform.childCount;
if (num > 0) if (num > 0)
...@@ -82,6 +70,9 @@ public class PlantTreeControl : MonoBehaviour ...@@ -82,6 +70,9 @@ public class PlantTreeControl : MonoBehaviour
Destroy(content.transform.GetChild(i).gameObject); Destroy(content.transform.GetChild(i).gameObject);
} }
} }
if (bean != null && bean.Count > 0)
{
foreach (GoodsBean itemData in bean) foreach (GoodsBean itemData in bean)
{ {
GameObject itemObj = Instantiate(item3, content.transform); GameObject itemObj = Instantiate(item3, content.transform);
...@@ -94,8 +85,6 @@ public class PlantTreeControl : MonoBehaviour ...@@ -94,8 +85,6 @@ public class PlantTreeControl : MonoBehaviour
} }
private void InitTwoListData(List<ExchangeListBean> bean) private void InitTwoListData(List<ExchangeListBean> bean)
{
if (bean != null && bean.Count > 0)
{ {
int num = twocontent.transform.childCount; int num = twocontent.transform.childCount;
if (num > 0) if (num > 0)
...@@ -105,6 +94,9 @@ public class PlantTreeControl : MonoBehaviour ...@@ -105,6 +94,9 @@ public class PlantTreeControl : MonoBehaviour
Destroy(twocontent.transform.GetChild(i).gameObject); Destroy(twocontent.transform.GetChild(i).gameObject);
} }
} }
if (bean != null && bean.Count > 0)
{
foreach (ExchangeListBean itemData in bean) foreach (ExchangeListBean itemData in bean)
{ {
GameObject itemObj = Instantiate(item2, twocontent.transform); GameObject itemObj = Instantiate(item2, twocontent.transform);
...@@ -145,7 +137,7 @@ public class PlantTreeControl : MonoBehaviour ...@@ -145,7 +137,7 @@ public class PlantTreeControl : MonoBehaviour
scrollview1.SetActive(true); scrollview1.SetActive(true);
scrollview2.SetActive(false); scrollview2.SetActive(false);
getWithDrawData(); getWithDrawData();
index = 1; // index = 1;
} }
public void clicktwo() public void clicktwo()
{ {
...@@ -155,7 +147,7 @@ public class PlantTreeControl : MonoBehaviour ...@@ -155,7 +147,7 @@ public class PlantTreeControl : MonoBehaviour
scrollview1.SetActive(false); scrollview1.SetActive(false);
scrollview2.SetActive(true); scrollview2.SetActive(true);
getExchangeListData(); getExchangeListData();
index = 2; // index = 2;
} }
public void clickthree() public void clickthree()
{ {
...@@ -165,6 +157,6 @@ public class PlantTreeControl : MonoBehaviour ...@@ -165,6 +157,6 @@ public class PlantTreeControl : MonoBehaviour
scrollview1.SetActive(true); scrollview1.SetActive(true);
scrollview2.SetActive(false); scrollview2.SetActive(false);
getRecordLog(); getRecordLog();
index = 3; // index = 3;
} }
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"dependencies": { "dependencies": {
"com.unity.ugui": "1.0.0" "com.unity.ugui": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.analytics": { "com.unity.analytics": {
"version": "3.3.5", "version": "3.3.5",
...@@ -28,21 +28,21 @@ ...@@ -28,21 +28,21 @@
"dependencies": { "dependencies": {
"com.unity.ugui": "1.0.0" "com.unity.ugui": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.collab-proxy": { "com.unity.collab-proxy": {
"version": "1.2.16", "version": "1.2.16",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.ext.nunit": { "com.unity.ext.nunit": {
"version": "1.0.6", "version": "1.0.6",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.ide.rider": { "com.unity.ide.rider": {
"version": "1.1.4", "version": "1.1.4",
...@@ -51,14 +51,14 @@ ...@@ -51,14 +51,14 @@
"dependencies": { "dependencies": {
"com.unity.test-framework": "1.1.1" "com.unity.test-framework": "1.1.1"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.ide.vscode": { "com.unity.ide.vscode": {
"version": "1.2.3", "version": "1.2.3",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.multiplayer-hlapi": { "com.unity.multiplayer-hlapi": {
"version": "1.0.8", "version": "1.0.8",
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"dependencies": { "dependencies": {
"nuget.mono-cecil": "0.1.6-preview" "nuget.mono-cecil": "0.1.6-preview"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.purchasing": { "com.unity.purchasing": {
"version": "2.2.1", "version": "2.2.1",
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
"dependencies": { "dependencies": {
"com.unity.ugui": "1.0.0" "com.unity.ugui": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.test-framework": { "com.unity.test-framework": {
"version": "1.1.20", "version": "1.1.20",
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"com.unity.modules.imgui": "1.0.0", "com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0" "com.unity.modules.jsonserialize": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.textmeshpro": { "com.unity.textmeshpro": {
"version": "2.1.1", "version": "2.1.1",
...@@ -96,14 +96,14 @@ ...@@ -96,14 +96,14 @@
"dependencies": { "dependencies": {
"com.unity.ugui": "1.0.0" "com.unity.ugui": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.timeline": { "com.unity.timeline": {
"version": "1.2.17", "version": "1.2.17",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.ugui": { "com.unity.ugui": {
"version": "1.0.0", "version": "1.0.0",
...@@ -122,14 +122,14 @@ ...@@ -122,14 +122,14 @@
"com.unity.modules.vr": "1.0.0", "com.unity.modules.vr": "1.0.0",
"com.unity.modules.xr": "1.0.0" "com.unity.modules.xr": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"nuget.mono-cecil": { "nuget.mono-cecil": {
"version": "0.1.6-preview", "version": "0.1.6-preview",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.cn"
}, },
"com.unity.modules.ai": { "com.unity.modules.ai": {
"version": "1.0.0", "version": "1.0.0",
......
...@@ -34,6 +34,7 @@ GraphicsSettings: ...@@ -34,6 +34,7 @@ GraphicsSettings:
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: [] m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0} type: 0}
......
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