Ejemplo n.º 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
Ejemplo n.º 2
0
 void awake()
 {
     instance = this;
 }
Ejemplo n.º 3
0
 // Update is called once per frame
 void Start()
 {
     parent = gameObject.GetComponentInParent <platformManager>();
 }