void Update() { if (mDestroyTime < Time.time) { TNManager.Destroy(gameObject); } }
void OnNetworkPlayerLeave(Player player) { if (player.id == ownerID) { Debug.Log(player.id + "IM IN"); TNManager.Destroy(transform.parent.gameObject); } }
/// <summary> /// Destroy this game object on all connected clients and remove it from the server. /// </summary> public void DestroySelf () { StartCoroutine(EnsureDestroy()); TNManager.Destroy(gameObject); }
void OnClick() { TNManager.Destroy(gameObject); }