fix(MultipleMatches): Applied ReadOnly Attributes

This commit is contained in:
MrGadget1024 2024-01-02 14:39:14 -05:00
parent ee8fda05fd
commit d2ad0b851b
3 changed files with 10 additions and 10 deletions

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{