예제 #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>();
 }