mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Basic Example: Made fields internal with SerializeField
This commit is contained in:
parent
0856bc008a
commit
6027b8056d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user