Пример #1
0
    public void Update()
    {
        if (timeWaited <= 0)
        {
            OnBeginTurn?.Invoke();
        }

        if (!InfinitTimeTurn)
        {
            timeWaited -= Time.deltaTime;
        }

        if (timeWaited > 0)
        {
            return;
        }

        EndTurn();
    }
 /// <summary>
 /// ターン開始時に呼ぶ
 /// </summary>
 public static void BeginTurn()
 {
     OnBeginTurn?.Invoke();
     m_isTurnStarted = true;
 }