예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        if (scoreMeter != null)
        {
            scoreMeter.SetupStars(m_levelGoal);
        }

        Scene scene = SceneManager.GetActiveScene();

        if (levelNameText != null)
        {
            levelNameText.text = scene.name;
        }

        m_levelGoal.movesLeft++;
        UpdateMoves();

        StartCoroutine("ExecuteGameLoop");
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        //setup stars
        if (scoreMeter != null)
        {
            scoreMeter.SetupStars(m_levelGoal);
        }
        //get reference to current scene
        Scene scene = SceneManager.GetActiveScene();

        //use screen name as level name
        if (levelNameText != null)
        {
            levelNameText.text = scene.name;
        }
        m_levelGoal.movesLeft++;
        if (movesLeftText && m_levelGoal is LevelGoalTimed)
        {
            movesLeftText.fontSize = 70;
        }
        UpdateMoves();
        StartCoroutine(ExecuteGameLoop());
    }