From 532555bbea52aee5c9c7c76a075894750e70af89 Mon Sep 17 00:00:00 2001 From: Chris Langsenkamp Date: Sat, 4 Apr 2020 12:03:08 -0400 Subject: [PATCH] Put methods in call order --- Assets/Mirror/Components/NetworkRoomPlayer.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Assets/Mirror/Components/NetworkRoomPlayer.cs b/Assets/Mirror/Components/NetworkRoomPlayer.cs index 811844959..c70f9d57d 100644 --- a/Assets/Mirror/Components/NetworkRoomPlayer.cs +++ b/Assets/Mirror/Components/NetworkRoomPlayer.cs @@ -132,27 +132,6 @@ public virtual void OnGUI() } } - void DrawPlayerReadyButton() - { - if (NetworkClient.active && isLocalPlayer) - { - GUILayout.BeginArea(new Rect(20f, 300f, 120f, 20f)); - - if (readyToBegin) - { - if (GUILayout.Button("Cancel")) - CmdChangeReadyState(false); - } - else - { - if (GUILayout.Button("Ready")) - CmdChangeReadyState(true); - } - - GUILayout.EndArea(); - } - } - void DrawPlayerReadyState() { GUILayout.BeginArea(new Rect(20f + (index * 100), 200f, 90f, 130f)); @@ -175,6 +154,27 @@ void DrawPlayerReadyState() GUILayout.EndArea(); } + void DrawPlayerReadyButton() + { + if (NetworkClient.active && isLocalPlayer) + { + GUILayout.BeginArea(new Rect(20f, 300f, 120f, 20f)); + + if (readyToBegin) + { + if (GUILayout.Button("Cancel")) + CmdChangeReadyState(false); + } + else + { + if (GUILayout.Button("Ready")) + CmdChangeReadyState(true); + } + + GUILayout.EndArea(); + } + } + #endregion } }