Ejemplo n.º 1
0
 /// <summary>
 /// Destroy given PhotonView with given ID. This will remove all Buffered RPCs and destroy the GameObject this view is attached to.
 /// </summary>
 /// <param name="view"></param>
 public static void Destroy(PhotonView view)
 {
     if (view != null && view.owner != null)
     {
         networkingPeer.DestroyPhotonView(view);
     }
     else
     {
         Debug.LogError("Destroy: Could not destroy view ID [" + view + "]. Does not exist, or is not ours!");
     }
 }