示例#1
0
 void Update()
 {
     if (mDestroyTime < Time.time)
     {
         TNManager.Destroy(gameObject);
     }
 }
示例#2
0
 void OnNetworkPlayerLeave(Player player)
 {
     if (player.id == ownerID)
     {
         Debug.Log(player.id + "IM IN");
         TNManager.Destroy(transform.parent.gameObject);
     }
 }
示例#3
0
	/// <summary>
	/// Destroy this game object on all connected clients and remove it from the server.
	/// </summary>

	public void DestroySelf ()
	{
		StartCoroutine(EnsureDestroy());
		TNManager.Destroy(gameObject);
	}
示例#4
0
 void OnClick()
 {
     TNManager.Destroy(gameObject);
 }