Exemple #1
0
    // Use this for initialization
    void Awake()
    {
        if (GameSettings.SOLO)
        {
            objTimer.SetActive(false);
        }

        scrTimer = objTimer.GetComponent <TimerUI>();

        if (GameInfoChoose.currentRoundTimeLeft != 0)
        {
            timeToNextGame = GameInfoChoose.currentRoundTimeLeft;
            GameInfoChoose.currentRoundTimeLeft = 0;
        }
        else
        {
            timeToNextGame = GameInfoChoose.info.round_duration_ms;
        }

        GameInfoChoose.SetNewRound();

        scrPrWPre = previewWordObj.GetComponent <PreviewWordPrefab>();

        whatSortText = whatSortObj.GetComponent <Text>();
    }
Exemple #2
0
    // Use this for initialization
    void Awake()
    {
        objTimer.SetActive(false);

        GameInfoChoose.SetRoundStartInfo(GameInfoCollocation.currentGame.currentGameData, false);

        if (GameInfoChoose.currentRoundTimeLeft != 0)
        {
            timeToNextGame = GameInfoChoose.currentRoundTimeLeft;
            GameInfoChoose.currentRoundTimeLeft = 0;
        }
        else
        {
            timeToNextGame = GameInfoChoose.info.round_duration_ms;
        }

        GameInfoChoose.SetNewRound();

        GameInfoChoose.currentRound = 0;

        scrPrWPre = previewWordObj.GetComponent <PreviewWordPrefab>();

        whatSortText = whatSortObj.GetComponent <Text>();
    }