コード例 #1
0
    void CountDown()
    {
        if (countDownTime < 0.35f)
        {
            countDownTime += Time.deltaTime;
        }
        else
        {
            countDownNum--;
            countDownTime = .0f;

            if (countDownNum > 0)
            {
                info.text = countDownNum.ToString();
            }
            else
            {
                info.text = "GO!!!";
                for (int i = 0; i < 4; i++)
                {
                    PVPPlayerManager.SetAllController(playerControllers[i].slotID, playerControllers[i].control);
                }
                StageManager.nextStage = 2;
                stageManager.ChangeSceneBlackOut();
                goNextStage = true;
            }
        }
    }
コード例 #2
0
 public void Init(PVPPlayerManager manager, CharacterVoice voice, bool team)
 {
     playerManager = manager;
     effectAudio   = voice;
     teamA         = team;
 }