Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
 public void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
     }
     Instance = this;
     DontDestroyOnLoad(this);
 }
Ejemplo n.º 2
0
 public void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
     }
     Instance = this;
     DontDestroyOnLoad(this);
 }