Esempio n. 1
0
        // local case
        public override void OnStartLocalClient(GameServer server)
        {
            base.OnStartLocalClient(server);

            instance = this;

            this.turtleServer = (TurtleServer)server;
        }
Esempio n. 2
0
        protected override void OnStartServer()
        {
            base.OnStartServer();

            instance = this;

            match = new TurtleMatch();
            match.CreateFromSpawnPoints(
                numRoles,
                mode == Mode.OfflineMode ? offlineTurtlePrefab : onlineTurtlePrefab,
                FindObjectsOfType <SpawnPoint>()
                );
        }