// local case public override void OnStartLocalClient(GameServer server) { base.OnStartLocalClient(server); instance = this; this.turtleServer = (TurtleServer)server; }
// remote case public override void OnStartRemoteClient(StartGameMessage initialMessages) { base.OnStartRemoteClient(initialMessages); instance = this; var initialState = initialMessages.ReadInitialMessage <GameState>(); remoteMatch = new TurtleMatch(); remoteMatch.CreateFromInitialState(numRoles, onlineTurtlePrefab, initialState); }