Beispiel #1
0
    void Start()
    {
        WaveConfigs = GetWaves();

        startWave = 0;
        StartCoroutine(SpawnAllWaves());

        _gameProgression = GameObject.Find("UI").GetComponent <GameProgressionHUD> ();
    }
    void Start()
    {
        _musicPlayer          = GameObject.Find("MusicPlayer").GetComponent <MusicPlayer> ();
        _uiController         = GameObject.Find("UI").GetComponent <UIController> ();
        _gameProgressionHUD   = GameObject.Find("UI").GetComponent <GameProgressionHUD> ();
        _backgroundTransition = GetComponent <BackgroundTransition> ();

        //workaround
        var blackScreen = GameObject.Find("BlackScreen").GetComponent <UnityEngine.UI.Image> ();

        blackScreen.color = new Color(0, 0, 0, 1);

        _blackScreenFadeController = GameObject.Find("BlackScreen").GetComponent <FadeController> ();

        _pause = GameObject.Find("Interface").transform.GetChild(0).gameObject;

        StartCoroutine(GameIntro());
    }