SendDestroyOfAll
How do I use Send Destroy Of All
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
2481 | this.SendDestroyOfAll(); | 1 |
2624 | private void SendDestroyOfAll() | 2 |
File name: NetworkingPeer.cs
Copy
2476 public void DestroyAll(bool localOnly)
2477 {
2478 if (!localOnly)
2479 {
2480 this.OpRemoveCompleteCache();
2481 this.SendDestroyOfAll();
2482 }
2483
2484 this.LocalCleanupAnythingInstantiated(true);
2485 }
File name: NetworkingPeer.cs
Copy
2624 private void SendDestroyOfAll()
2625 {
2626 Hashtable evData = new Hashtable();
2627 evData[(byte)0] = -1;
2628
2629
2630 this.OpRaiseEvent(PunEvent.DestroyPlayer, evData, true, null);
2631 //this.OpRaiseEvent(PunEvent.DestroyPlayer, evData, true, 0, EventCaching.DoNotCache, ReceiverGroup.Others);
2632 }
SendDestroyOfAll 176 lượt xem
Gõ tìm kiếm nhanh...