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