private void Awake() { _inst = this; _gameObject = gameObject; _gameObject.SetActive(false); XBtn.onClick.AddListener(ClosePanel); Init(); }
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()); } }
public void OnClickHeroBtnBtn() { HeroPanel.GetInst().OpenPanel(); }
private void OnClickHero() { HeroPanel.GetInst().OpenPanel(); }
private void OnDestroy() { _inst = null; }