Example #1
0
 private void Awake()
 {
     _inst       = this;
     _gameObject = gameObject;
     _gameObject.SetActive(false);
     XBtn.onClick.AddListener(ClosePanel);
     Init();
 }
Example #2
0
 private void Awake()
 {
     _inst       = this;
     _gameObject = gameObject;
     CloseBtn.onClick.AddListener(ClosePanel);
     PreBtn.onClick.AddListener(OnClickPre);
     NextBtn.onClick.AddListener(OnClickNext);
     for (int i = 0; i < 10; ++i)
     {
         Labels[i].text = ConfigData.GetStaticText((10000 + i).ToString());
     }
 }
Example #3
0
 public void OnClickHeroBtnBtn()
 {
     HeroPanel.GetInst().OpenPanel();
 }
Example #4
0
 private void OnClickHero()
 {
     HeroPanel.GetInst().OpenPanel();
 }
Example #5
0
 private void OnDestroy()
 {
     _inst = null;
 }