Basic Example: Made fields internal with SerializeField

This commit is contained in:
MrGadget1024 2020-11-28 15:43:02 -05:00
parent 0856bc008a
commit 6027b8056d

View File

@ -8,6 +8,7 @@
namespace Mirror.Examples.Basic
{
[AddComponentMenu("")]
public class BasicNetManager : NetworkManager
{
// Players List to manage playerNumber
@ -16,10 +17,10 @@ public class BasicNetManager : NetworkManager
[Header("Canvas UI")]
[Tooltip("Assign Main Panel so it can be turned on from Player:OnStartClient")]
public RectTransform mainPanel;
[SerializeField] internal RectTransform mainPanel;
[Tooltip("Assign Players Panel for instantiating PlayerUI as child")]
public RectTransform playersPanel;
[SerializeField] internal RectTransform playersPanel;
/// <summary>
/// Called on the server when a client adds a new player with ClientScene.AddPlayer.