NetworkingPeer.DestroyAll C# (CSharp) Method

DestroyAll() public method

public DestroyAll ( bool localOnly ) : void
localOnly bool
return void
    public void DestroyAll(bool localOnly)
    {
        if (!localOnly)
        {
            this.OpRemoveCompleteCache();
            this.SendDestroyOfAll();
        }

        this.LocalCleanupAnythingInstantiated(true);
    }

Usage Example

Exemplo n.º 1
0
 public static void DestroyAll()
 {
     if (isMasterClient)
     {
         networkingPeer.DestroyAll(false);
     }
     else
     {
         Debug.LogError("Couldn't call DestroyAll() as only the master client is allowed to call this.");
     }
 }
All Usage Examples Of NetworkingPeer::DestroyAll
NetworkingPeer