Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine.SceneManagement;
using UnityEngine;
public class IntroController : MonoBehaviour
{
[SerializeField] List<IntroFadeController> faders;
[SerializeField] string nextSceneName;
// Start is called before the first frame update
void Start()
{
if (faders.Count > 0) {
faders[0].gameObject.SetActive(true);
}
}
// Update is called once per frame
void Update()
{
if (faders.Count == 0) {
SceneManager.LoadScene(nextSceneName, LoadSceneMode.Single);
} else if (!faders[0].gameObject.activeSelf) {
// Start the timer of a new fader.
faders[0].gameObject.SetActive(true);
} else if (faders[0].turnedOff) {
faders[0].gameObject.SetActive(false);
faders.RemoveAt(0);
}
}
}