void Start() { fadeInBlack = true; loadNext.StartLoadingNextScene(); randomSpawner.StartSpawning(); fade.FadeOutBlack(); }
// Update is called once per frame void Update() { if (Time.timeSinceLevelLoad > 11f && showOnce) { fade.FadeInBlack(); showOnce = false; } if (Time.timeSinceLevelLoad > 18f && !showOnce) { fade.FadeOutBlack(); showOnce = true; } }
// Start is called before the first frame update void Start() { fadeInFlag = true; fade.FadeOutBlack(); }