Exemplo n.º 1
0
 void Update()
 {
     if (transform.position.z < -1f)
     {
         Prototype_MobGenerator.Destroy(this.gameObject);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
 void Awake()
 {
     if(instance == null)
         instance = this;
 }