public static LoadingScreenControl getInstance () { if ( _meInstance == null ) { _meInstance = GameObject.Find ( "CameraLoading" ).GetComponent < LoadingScreenControl > (); } return _meInstance; }
private void Awake() { // Singleton logic: if (Instance == null) { Instance = this; } else { Destroy(gameObject); return; } animator = GetComponent <Animator>(); // Hide(); }
private void Start() { LoadingScreenControl.LoadScene("Scene1"); }
void Start() { Instance = this; }