public void DestroyAll(bool localOnly) { if (!localOnly) { this.OpRemoveCompleteCache(); this.SendDestroyOfAll(); } this.LocalCleanupAnythingInstantiated(true); }
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."); } }