Commit ac248667 authored by zhangzhe's avatar zhangzhe

修改bug

parent 6f603512
...@@ -40,6 +40,7 @@ public class LeeMainController : MonoBehaviour ...@@ -40,6 +40,7 @@ public class LeeMainController : MonoBehaviour
TitleBG2.Find("Fruit" + i.ToString() + "/imgProcess").GetComponent<Image>().fillAmount = (float)model.infoList[i].current / (float)model.infoList[i].targetNum; TitleBG2.Find("Fruit" + i.ToString() + "/imgProcess").GetComponent<Image>().fillAmount = (float)model.infoList[i].current / (float)model.infoList[i].targetNum;
TitleBG2.Find("Fruit" + i.ToString() + "/txtProcess").GetComponent<Text>().text = string.Format("{0}/{1}", (float)model.infoList[i].current, model.infoList[i].targetNum); TitleBG2.Find("Fruit" + i.ToString() + "/txtProcess").GetComponent<Text>().text = string.Format("{0}/{1}", (float)model.infoList[i].current, model.infoList[i].targetNum);
int woodId = (int)model.infoList[i].woodId; int woodId = (int)model.infoList[i].woodId;
TitleBG2.Find("Fruit" + i.ToString()).GetComponent<Button>().onClick.RemoveAllListeners();
TitleBG2.Find("Fruit" + i.ToString()).GetComponent<Button>().onClick.AddListener(() => TitleBG2.Find("Fruit" + i.ToString()).GetComponent<Button>().onClick.AddListener(() =>
{ {
DidSelectedToPlanting(woodId); DidSelectedToPlanting(woodId);
......
...@@ -1200,7 +1200,7 @@ PrefabInstance: ...@@ -1200,7 +1200,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -63 value: -101
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
...@@ -9657,9 +9657,9 @@ RectTransform: ...@@ -9657,9 +9657,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: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 355, y: 0} m_AnchoredPosition: {x: 355, y: -72.29167}
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
...@@ -11938,7 +11938,7 @@ PrefabInstance: ...@@ -11938,7 +11938,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 84.5 value: 46.5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
...@@ -13097,7 +13097,7 @@ RectTransform: ...@@ -13097,7 +13097,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: 160, y: 61} m_AnchoredPosition: {x: 122, y: 61}
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!1 &382383541 --- !u!1 &382383541
...@@ -38343,7 +38343,7 @@ PrefabInstance: ...@@ -38343,7 +38343,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 213 value: 175
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
...@@ -47147,7 +47147,7 @@ PrefabInstance: ...@@ -47147,7 +47147,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -134 value: -172
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
...@@ -68976,7 +68976,7 @@ RectTransform: ...@@ -68976,7 +68976,7 @@ RectTransform:
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: 1}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -0.00011539459} m_AnchoredPosition: {x: 0, y: -0.00011444092}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &2116027665 --- !u!114 &2116027665
...@@ -70288,7 +70288,7 @@ PrefabInstance: ...@@ -70288,7 +70288,7 @@ PrefabInstance:
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -34 value: -72
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362, - target: {fileID: 455528768202490615, guid: db026780330de104d920b4c604141362,
type: 3} type: 3}
...@@ -194,7 +194,7 @@ public class TaskItem : MonoBehaviour ...@@ -194,7 +194,7 @@ public class TaskItem : MonoBehaviour
if (cb) if (cb)
{ {
EventCenter.Broadcast(MyEventType.UpdateTaskList); EventCenter.Broadcast(MyEventType.UPDATE_HARVEST_DATA, 1);
} }
else else
{ {
......
...@@ -241,23 +241,19 @@ public class DialogControl : MonoBehaviour ...@@ -241,23 +241,19 @@ public class DialogControl : MonoBehaviour
private void OnEnable() private void OnEnable()
{ {
#if UNITY_IOS //#if UNITY_IOS
// 害虫背景 // // 外星礼物背景
Image EncounterpestsDialogBg = transform.Find("EncounterpestsDialog/Image").GetComponent<Image>(); // Image FlyBoxRewardBg = transform.Find("FlyBoxReward/Image").GetComponent<Image>();
// 外星礼物背景
Image FlyBoxRewardBg = transform.Find("FlyBoxReward/Image").GetComponent<Image>(); // if (!Constant.Instance.shubiao)
// {
if (!Constant.Instance.shubiao) // FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg0");
{ // }
EncounterpestsDialogBg.sprite = Resources.Load<Sprite>("shubiaoBg0"); // else
FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg0"); // {
} // FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg1");
else // }
{ //#endif
EncounterpestsDialogBg.sprite = Resources.Load<Sprite>("shubiaoBg1");
FlyBoxRewardBg.sprite = Resources.Load<Sprite>("shubiaoBg1");
}
#endif
} }
......
...@@ -71,7 +71,7 @@ public class StickDialog : MonoBehaviour ...@@ -71,7 +71,7 @@ public class StickDialog : MonoBehaviour
{ {
EventCenter.Broadcast(MyEventType.UPDATE_LAND_DATA, bean.landStatus); EventCenter.Broadcast(MyEventType.UPDATE_LAND_DATA, bean.landStatus);
if (bean.rewardContent.currencyType == 5) if (bean.rewardContent.currencyType == 20)
{ {
GameObject.Find("Dialog").GetComponent<DialogControl>().showReceiveDiamondDialog(bean.rewardContent.cash.ToString()); GameObject.Find("Dialog").GetComponent<DialogControl>().showReceiveDiamondDialog(bean.rewardContent.cash.ToString());
} }
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
#import "KeychainItemManager.h" #import "KeychainItemManager.h"
#import "WKWebViewController.h" #import "WKWebViewController.h"
@interface CustomAppController : UnityAppController < WXApiDelegate > @interface CustomUnityAppController : UnityAppController < WXApiDelegate >
@end @end
IMPL_APP_CONTROLLER_SUBCLASS (CustomAppController) IMPL_APP_CONTROLLER_SUBCLASS (CustomUnityAppController)
@implementation CustomAppController @implementation CustomUnityAppController
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
......
...@@ -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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"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.cn" "url": "https://packages.unity.com"
}, },
"com.unity.modules.ai": { "com.unity.modules.ai": {
"version": "1.0.0", "version": "1.0.0",
......
...@@ -17,7 +17,7 @@ MonoBehaviour: ...@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries: m_Registries:
- m_Id: main - m_Id: main
m_Name: m_Name:
m_Url: https://packages.unity.cn m_Url: https://packages.unity.com
m_Scopes: [] m_Scopes: []
m_IsDefault: 1 m_IsDefault: 1
m_UserSelectedRegistryName: m_UserSelectedRegistryName:
......
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