Ejemplo n.º 1
0
 private void Awake()
 {
     if ( instance == null )
         instance = this;
     else
     {
         Destroy( instance.gameObject );
         instance = this;
     }
 }
Ejemplo n.º 2
0
 public void DeleteRightClick()
 {
     //		Debug.Log("Delete Right Click ran");
     instance = null;
     Destroy(this.gameObject);
 }