Пример #1
0
 public virtual void OnEnter()
 {
     SoundManager.GetInstance().PlaySound("open");
     moduleState = MODULE_STATE.RUN;
     gameObject.SetActive(true);
     InitEffect();
 }
Пример #2
0
        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();
                }
                    );
            }
        }
Пример #3
0
 public virtual void ExitHandle()
 {
     moduleState = MODULE_STATE.STOP;
     gameObject.SetActive(false);
 }