private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } //DontDestroyOnLoad(this.gameObject); }
private void OnEnable() { Instance = this; ScreenFadeController = GetComponent <ScreenFadeController>(); }
private void Awake() { characterViewInteractor = GetComponent <CharacterViewInteractor>(); screenFadeController = FindObjectOfType <ScreenFadeController>(); }