Started make greybox for main location
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
public sealed class FactoryLobbyCodeView : MonoBehaviour
|
||||
{
|
||||
private void OnGUI()
|
||||
{
|
||||
NetworkSessionController session = NetworkSessionController.Instance;
|
||||
if (session == null || !session.IsOnline) return;
|
||||
|
||||
GUI.Box(new Rect(24, 24, 340, 112), string.Empty);
|
||||
GUILayout.BeginArea(new Rect(42, 42, 304, 76));
|
||||
if (session.IsHost)
|
||||
{
|
||||
GUILayout.Label("LOBBY CODE");
|
||||
GUILayout.Label(string.IsNullOrEmpty(session.JoinCode) ? "Generating..." : session.JoinCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
GUILayout.Label("CONNECTED TO FACTORY");
|
||||
}
|
||||
GUILayout.EndArea();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user