private void Start() { Instance = this; if (LobbyPlayer.localPlayer && !LobbyPlayer.localPlayer.isServer) { startGameButton.SetActive(false); } }
void Teste() { if (isLocalPlayer) { localPlayer = this; } lobbyUIController = FindObjectOfType <LobbyUIController>(); //lobbyUIController.AddPlayerLine(this); }
private void OnDestroy() { Instance = null; }