| | |
| | | Text gongdeNum;
|
| | | Transform gushenObj; |
| | | Text gushenNum; |
| | | Transform huanjingObj; |
| | | Text huanjingNum; |
| | | |
| | | StoreModel model { get { return ModelCenter.Instance.GetModel<StoreModel>(); } } |
| | | protected override void Awake() |
| | |
| | | gongdeNum = proxy.GetWidgtEx<Text>("gongdeNum");
|
| | | gushenObj = proxy.GetWidgtEx<Transform>("gushenmoney"); |
| | | gushenNum = proxy.GetWidgtEx<Text>("gushenCnt"); |
| | | huanjingObj = proxy.GetWidgtEx<Transform>("huanjingmoney"); |
| | | huanjingNum = proxy.GetWidgtEx<Text>("huanjingCnt"); |
| | | //var launchWin = WindowCenter.Instance.Get<LaunchWin>(); |
| | | } |
| | | protected override void OnEnable() |
| | |
| | | { |
| | | case PlayerDataType.default14: |
| | | RefreshCoins(); |
| | | break;
|
| | | case PlayerDataType.default43: |
| | | RefreshCoins(); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | { |
| | | gongdeNum.text = ItemLogicUtility.Instance.OnChangeCoinsUnit(HeroControler.Instance.GetMoneyCntIL(35)); |
| | | gushenNum.text = ItemLogicUtility.Instance.OnChangeCoinsUnit(HeroControler.Instance.GetMoneyCntIL(34)); |
| | | |
| | | huanjingNum.text = ItemLogicUtility.Instance.OnChangeCoinsUnit(UIHelper.GetMoneyCnt(50)); |
| | | } |
| | | |
| | | void OnStoreRefreshUI() |
| | |
| | | otherCoins.SetActiveIL(model.storeFuncType == StoreFunc.IntegralStore || model.storeFuncType == StoreFunc.DayStore); |
| | | gongdeObj.SetActiveIL(model.storeFuncType == StoreFunc.MysteryStore); |
| | | gushenObj.SetActiveIL(model.storeFuncType == StoreFunc.GrowStrongerStore); |
| | | huanjingObj.SetActiveIL(model.storeFuncType == StoreFunc.CommonStore); |
| | | RefreshCoins(); |
| | | } |
| | | } |