private void OnEnable() { startMatchButton.gameObject.SetActive(false); findOpponentButton.gameObject.SetActive(false); connectingLabel.gameObject.SetActive(true); PhotonNetworkManager.listener = this; PhotonNetworkManager.Connect(); }
private void Awake() { if (_instance) { Destroy(gameObject); return; } _instance = this; }
public void OnFindOpponentButtonClicked() { findOpponentButtonLabel.text = "Searching..."; PhotonNetworkManager.FindOpponent(); }