Ejemplo n.º 1
0
    void PlayerAllIn()
    {
        if (PlayerCharacters.Count == 4 || _isDebugMode)
        {
            // 예외처리

            for (int i = 0; i < PlayerCharacters.Count; ++i)
            {
                if (PlayerCharacters[i] != null)
                {
                    PlayerCharacters[i].transform.position = _playerSpawnPoints[i].transform.position;
                }
            }

            PhotonNetwork.CurrentRoom.IsOpen = false;

            _Timer.OnStart();

            if (PhotonNetwork.IsMasterClient)
            {
                _tartMgr.RandomChoiceOfTart();
            }

            GameSequences.Dequeue();
        }
    }
Ejemplo n.º 2
0
    public void OnStart()
    {
        LogManager.Log("Timer On !");

        _remainingTime = 185;
        _isStart       = true;
        _tartManager   = TartSystemManager.Instance;

        _tartManager.RandomChoiceOfTart();
    }