コード例 #1
0
    void Start()
    {
        GameController.Instance.scptActiveTimer = this;
        txtTime = gameObject.GetComponent <Text>();
        Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer()));


        //Init(GamesController.GetTimerActivePlayer(GamesController.GetPlayer()) + GamesController.GetTimeRound());
    }
コード例 #2
0
ファイル: GUIScript.cs プロジェクト: Mork978/SoundProject
    // 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();
    }