public bool IsDestroyed() { if (this == null) { return(true); } if (destroyMe) { UFE.DestroyGameObject(gameObject); } return(destroyMe); }
public int destroyTime = 30; // frames void Start() { UFE.DestroyGameObject(gameObject, destroyTime); }