NetSimHasNoPeerWindow
How do I use Net Sim Has No Peer Window
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
44 | this.WindowRect = GUILayout.Window(this.WindowId, this.WindowRect, this.NetSimHasNoPeerWindow, "Netw. Sim."); | 1 |
52 | private void NetSimHasNoPeerWindow(int windowId) | 2 |
File name: PhotonLagSimulationGui.cs
Copy
35 public void OnGUI()
36 {
37 if (!this.Visible)
38 {
39 return;
40 }
41
42 if (this.Peer == null)
43 {
44 this.WindowRect = GUILayout.Window(this.WindowId, this.WindowRect, this.NetSimHasNoPeerWindow, "Netw. Sim.");
45 }
46 else
47 {
48 this.WindowRect = GUILayout.Window(this.WindowId, this.WindowRect, this.NetSimWindow, "Netw. Sim.");
49 }
50 }
File name: PhotonLagSimulationGui.cs
Copy
52 private void NetSimHasNoPeerWindow(int windowId)
53 {
54 GUILayout.Label("No peer to communicate with. ");
55 }
NetSimHasNoPeerWindow 108 lượt xem
Gõ tìm kiếm nhanh...