Esempio n. 1
0
 public override void DoStart(UIManager manager)
 {
     GameManager.gamePhase = 99;
     base.DoStart(manager);
     arrowManager.ClearList();
     StartCoroutine(PlayDrumList(ImportRoute.GetBeat(), ImportRoute.GetBeatTime()));
     SoundManager.Instance.PlayGuideBackground();
 }
Esempio n. 2
0
 public void AllDrumList()
 {
     for (int i = 0; i < allDancer.childCount; ++i)
     {
         var ani = allDancer.GetChild(i).GetComponent <DancerAni>();
         if (ani.gameObject.activeSelf)
         {
             StartCoroutine(ani.DrumList(ImportRoute.GetBeat(), ImportRoute.GetBeatTime()));
         }
     }
 }
Esempio n. 3
0
        public ArrowManager arrowManager; //TODO 节奏条考虑放入AllwaysPanel。

        public override void DoStart(UIManager manager)
        {
            base.DoStart(manager);
            manager.StartPanel("AlwaysPanel");
            if (GameManager.gamePhase > 10) //保险
            {
                GameManager.gamePhase = 0;
            }

            SoundManager.Instance.PlayBackground(GameManager.gamePhase);
            arrowManager.ClearList();
            float startTime = 0;

            if (GameManager.phaseTime == 0) //第一回合额外片头时间
            {
                SetTimeOut(currentTimeOut + GameManager.PHASE_START_DELAY[GameManager.gamePhase]);
                startTime = GameManager.PHASE_START_DELAY[GameManager.gamePhase];
            }
            StartCoroutine(PlayDrumList(startTime, ImportRoute.GetBeat(), ImportRoute.GetBeatTime()));
        }