Esempio n. 1
0
    public override void OnStartClient()
    {
        if (instance)
        {
            Debug.LogError("ERROR: Another GameSession");
        }

        instance = this;

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

        _networkTransmitter = GetComponent <CrironaNetworkTransmitter>();

        if (gameState != CrironaState.Lobby)
        {
            gameState = CrironaState.Lobby;
        }
    }
Esempio n. 2
0
 public override void OnStartServer()
 {
     networkListener   = FindObjectOfType <CrironaExampleListener>();
     _arSessionManager = FindObjectOfType <ExampleARSessionManager>();
     gameState         = CrironaState.Connecting;
 }