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