mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Put methods in call order
This commit is contained in:
parent
34415fe876
commit
532555bbea
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user