public virtual void OnEnter() { SoundManager.GetInstance().PlaySound("open"); moduleState = MODULE_STATE.RUN; gameObject.SetActive(true); InitEffect(); }
private void Init() { moduleState = MODULE_STATE.RUN; //SoundManager.GetInstance().PlaySound("open"); // gameObject.SetActive (true); rectTrans = transform as RectTransform; Transform go = rectTrans.Find("Close"); if (null != go) { go.gameObject.GetComponent <Button>().onClick.AddListener( delegate() { OnQuit(); } ); } }
public virtual void ExitHandle() { moduleState = MODULE_STATE.STOP; gameObject.SetActive(false); }