void Update() { CheckTime(); if (bFinnish) { GamesController.SetTimerActivePlayer(GamesController.GetPlayer(), fCurrentTime); } }
public void FinnishUI() { switch (GamesController.GetPlayer()) { case GamesController.ePLAYER.PLAYER1: gonjWinPlayer2.SetActive(true); break; case GamesController.ePLAYER.PLAYER2: gonjWinPlayer1.SetActive(true); break; } }
void Start() { GameController.Instance.scptActiveTimer = this; txtTime = gameObject.GetComponent <Text>(); Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer())); //Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer()) + GamesController.GetTimeRound()); }
// 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(); }