Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance        = this;
         gameObject.name = "BLEControllerInitializer";
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         GameObject.Destroy(this.gameObject);
     }
 }
 void Awake()
 {
     if(Instance == null)
     {
         Instance = this;
         gameObject.name = "BLEControllerInitializer";
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         GameObject.Destroy(this.gameObject);
     }
 }