Ejemplo n.º 1
0
 public bool IsDestroyed()
 {
     if (this == null)
     {
         return(true);
     }
     if (destroyMe)
     {
         UFE.DestroyGameObject(gameObject);
     }
     return(destroyMe);
 }
Ejemplo n.º 2
0
    public int destroyTime = 30;     // frames

    void Start()
    {
        UFE.DestroyGameObject(gameObject, destroyTime);
    }