mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(MultipleMatches): Applied ReadOnly Attributes
This commit is contained in:
parent
ee8fda05fd
commit
d2ad0b851b
@ -12,8 +12,8 @@ public class CellGUI : MonoBehaviour
|
||||
public Image image;
|
||||
public Button button;
|
||||
|
||||
[Header("Diagnostics - Do Not Modify")]
|
||||
public NetworkIdentity playerIdentity;
|
||||
[Header("Diagnostics")]
|
||||
[ReadOnly, SerializeField] internal NetworkIdentity playerIdentity;
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
|
@ -22,14 +22,14 @@ public class MatchController : NetworkBehaviour
|
||||
public Text winCountLocal;
|
||||
public Text winCountOpponent;
|
||||
|
||||
[Header("Diagnostics - Do Not Modify")]
|
||||
public CanvasController canvasController;
|
||||
public NetworkIdentity player1;
|
||||
public NetworkIdentity player2;
|
||||
public NetworkIdentity startingPlayer;
|
||||
[Header("Diagnostics")]
|
||||
[ReadOnly, SerializeField] internal CanvasController canvasController;
|
||||
[ReadOnly, SerializeField] internal NetworkIdentity player1;
|
||||
[ReadOnly, SerializeField] internal NetworkIdentity player2;
|
||||
[ReadOnly, SerializeField] internal NetworkIdentity startingPlayer;
|
||||
|
||||
[SyncVar(hook = nameof(UpdateGameUI))]
|
||||
public NetworkIdentity currentPlayer;
|
||||
[ReadOnly, SerializeField] internal NetworkIdentity currentPlayer;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
|
@ -14,8 +14,8 @@ public class MatchGUI : MonoBehaviour
|
||||
public Text matchName;
|
||||
public Text playerCount;
|
||||
|
||||
[Header("Diagnostics - Do Not Modify")]
|
||||
public CanvasController canvasController;
|
||||
[Header("Diagnostics")]
|
||||
[ReadOnly, SerializeField] internal CanvasController canvasController;
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user