Ejemplo n.º 1
0
        public override void OnStartClient()
        {
            if (instance)
            {
                Debug.LogError("ERROR: Another GameSession!");
            }
            instance = this;

            networkListener             = FindObjectOfType <ExampleListener>();
            networkListener.gameSession = this;

            _networkTransmitter = GetComponent <NetworkTransmitter> ();

            if (gameState != GameState.Lobby)
            {
                gameState = GameState.Lobby;
            }
        }
Ejemplo n.º 2
0
 public override void OnStartServer()
 {
     networkListener   = FindObjectOfType <ExampleListener>();
     _arSessionManager = FindObjectOfType <ExampleARSessionManager> ();
     gameState         = GameState.Connecting;
 }