Exemplo n.º 1
0
 public virtual void OnEnter()
 {
     SoundManager.GetInstance().PlaySound("open");
     moduleState = MODULE_STATE.RUN;
     gameObject.SetActive(true);
     InitEffect();
 }
Exemplo n.º 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();
                }
                    );
            }
        }
Exemplo n.º 3
0
 public virtual void ExitHandle()
 {
     moduleState = MODULE_STATE.STOP;
     gameObject.SetActive(false);
 }