예제 #1
0
파일: Game.cs 프로젝트: benk0913/Dawgio_V2
    public void SetTurn(string playerName)
    {
        HaltPreviousTurn();

        CurrentPlayer = GetPlayer(playerName);

        LerpTurnGlow(CurrentPlayer);

        if (CurrentPlayer.isPlayer)
        {
            SetMessage("Your Turn...");

            Phase = TurnPhase.DrawCard;


            if (TutorialMode)
            {
                GuideManager.Instance.TryTeach(3);
            }
        }
        else
        {
            SetMessage(playerName + "'s Turn...");

            Phase = TurnPhase.OtherPlayer;
        }

        TurnTimer.SetTime(20);
    }
예제 #2
0
 private void Reset()
 {
     level.Load();
     Inventory.instance.Reset();
     player.SetActive(false);
     portal.Appear();
     timer.gameObject.SetActive(level.data.timer > 0);
     timer.SetTime(level.data.timer);
     message.SetMessage(level.data.message);
     aq.Delay(0.9f);
     aq.Add(() =>
     {
         if (level.data.specialStart)
         {
             player.transform.position = new Vector3(-3, -3.74626f, 0);
         }
         else
         {
             player.transform.position = portal.transform.position;
         }
         player.SetActive(true);
         playerPS.Play();
         if (timer.gameObject.activeSelf)
         {
             timer.StartTimer();
         }
     });
     aq.Run();
 }