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(); }