123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class FashionShowManager : Regist
- {
- #region Config
- //StartMark-Used by LabelUtility-Do not remove
- //EndMark-Used by LabelUtility-Do not remove
- private static Button GardenFashionShowButton;
- private static Button DressroomFashionShowButton;
- private static Transform FashionShowButtonParent;
- private static int UnlockLevel = 21;
- #endregion
- public override void RegistReference()
- {
- GardenFashionShowButton = ResourceManager.Get<Button>(CanvasLabel.C_FashionShowButton);
- DressroomFashionShowButton = ResourceManager.Get<Button>(CanvasLabel.P_FashionShowButton);
- FashionShowButtonParent = ResourceManager.Get(CanvasLabel.C_FashionShowButtonParent);
- GardenFashionShowButton.onClick.AddListener(OnGardenFashionShowButtonClick);
- DressroomFashionShowButton.onClick.AddListener(OnDressroomFashionShowButtonClick);
- Manager.OnLevelChange += OnLevelChange;
- }
- private static void OnLevelChange(int level)
- {
- if (level >= UnlockLevel)
- {
- FashionShowButtonParent.SetActive(true);
- }
- else
- {
- FashionShowButtonParent.SetActive(false);
- }
- }
- private static void OnGardenFashionShowButtonClick()
- {
- }
- private static void OnDressroomFashionShowButtonClick()
- {
- }
- }
|