public void ComSatConnectionStateChanged(ComSat.ConnectionState newState) { if (newState == ComSat.ConnectionState.Disconnected) { playerName.text = ComSat.instance.localPlayerName; gameObject.SetActive(true); } else { gameObject.SetActive(false); } }
public void ComSatConnectionStateChanged(ComSat.ConnectionState newState) { if (newState == ComSat.ConnectionState.Connected) { startGameButton.gameObject.SetActive(ComSat.instance.isHost); gameObject.SetActive(true); } else { gameObject.SetActive(false); } }