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; } }
public override void OnStartServer() { networkListener = FindObjectOfType <CrironaExampleListener>(); _arSessionManager = FindObjectOfType <ExampleARSessionManager>(); gameState = CrironaState.Connecting; }