Пример #1
0
        private void Start()
        {
            startColor  = normalPanel.color;
            selectColor = new Color(0, 200, 0, 155);

            selection = selectionContainer.GetComponent <DifficultySelection>();

            normalPanel.color    = selectColor;
            selection.difficulty = Difficulty.normal;
        }
Пример #2
0
        private void Start()
        {
            pm = PlayerManager.getInstance();
            em = EnemiesManager.getInstance();

            difficultyContainer = GameObject.FindGameObjectWithTag("Difficulty");
            if (difficultyContainer != null)
            {
                DifficultySelection ds = difficultyContainer.GetComponent <DifficultySelection>();
                difficulty = ds.difficulty;
            }
            else
            {
                difficulty = Difficulty.hard;
            }

            Debug.Log("Difficulty: " + difficulty);

            Time.timeScale = 1;
            waveIndex      = 0;
            gameState      = GameState.Build;
        }