예제 #1
0
 void Update()
 {
     CheckTime();
     if (bFinnish)
     {
         GamesController.SetTimerActivePlayer(GamesController.GetPlayer(), fCurrentTime);
     }
 }
예제 #2
0
    public void FinnishUI()
    {
        switch (GamesController.GetPlayer())
        {
        case GamesController.ePLAYER.PLAYER1: gonjWinPlayer2.SetActive(true); break;

        case GamesController.ePLAYER.PLAYER2: gonjWinPlayer1.SetActive(true); break;
        }
    }
예제 #3
0
    void Start()
    {
        GameController.Instance.scptActiveTimer = this;
        txtTime = gameObject.GetComponent <Text>();
        Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer()));


        //Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer()) + GamesController.GetTimeRound());
    }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        gonjWinPlayer1.SetActive(false);
        gonjWinPlayer2.SetActive(false);

        /*txtTimerActive.text = (GamesController.GetTimerActivePlayer(GamesController.GetPlayer()) + GamesController.GetTimeRound()).ToString();
         * txtTimerOther.text = (GamesController.GetTimerDeactivePlayer(GamesController.GetPlayer()) + GamesController.GetTimeRound()).ToString();*/
        txtTimerActive.text = GamesController.GetTimerActivePlayer(GamesController.GetPlayer()).ToString("0.00");
        txtTimerOther.text  = GamesController.GetTimerDeactivePlayer(GamesController.GetPlayer()).ToString("0.00");
        txtRound.text       = GamesController.GetRoundCounter().ToString();
    }