Esempio n. 1
0
    public void onStart()
    {
        if (FightMain.fightTest)
        {
            PlayerData.instance.uid = null;
        }

        if (!FightMain.fightTest)
        {
            if (null != GameObject.Find("Stage").GetComponent <AudioSource>())
            {
                GameObject.Find("Stage").GetComponent <AudioSource>().enabled = false;
            }
            GameObject.Find("Stage").transform.Find("Sound").GetComponent <AudioSource>().enabled = false;
            SoundManager.inst.SetMusic2(false, false);
        }



        if (FightMain.isLocal)
        {
            this.init();
        }
        else
        {
            NetAdapter.init(() => {
                this.init();
            });
        }
    }
Esempio n. 2
0
 public void regainMap()
 {
     this.pause = true;
     //TODO:替换新的动画。
     this.scene.setRegainMap(true);
     this._steps.Clear();
     this.stepIndex = 0;
     NetAdapter.init(() => {
         NetAdapter.sendStartMatch();
         this.scene.setRegainMap(false);
     });
 }