Exemplo n.º 1
0
        private void OnEnable()
        {
            startMatchButton.gameObject.SetActive(false);
            findOpponentButton.gameObject.SetActive(false);
            connectingLabel.gameObject.SetActive(true);

            PhotonNetworkManager.listener = this;
            PhotonNetworkManager.Connect();
        }
Exemplo n.º 2
0
        private void Awake()
        {
            if (_instance)
            {
                Destroy(gameObject);
                return;
            }

            _instance = this;
        }
Exemplo n.º 3
0
        public void OnFindOpponentButtonClicked()
        {
            findOpponentButtonLabel.text = "Searching...";

            PhotonNetworkManager.FindOpponent();
        }