Esempio n. 1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     dialogueManager = DialoguesManager.Instance;
 }
 private void Awake()
 {
     _instance = this;
 }
Esempio n. 4
0
 void Awake()
 {
     mInstance = this;
 }