private Image loadImage; // Image of the load screen private void Awake() { // Singleton logic: if (Instance == null) { Instance = this; // Don't destroy the loading screen while switching scenes: } else { Destroy(gameObject); return; } }
private void Start() { ls = FindObjectOfType <SC_LoadingScreen>(); }