public override void Initialize(InsightServer insight, ModuleManager manager)
        {
            server        = insight;
            this.manager  = manager;
            authModule    = this.manager.GetModule <ServerAuthentication>();
            gameManager   = this.manager.GetModule <ServerGameManager>();
            masterSpawner = this.manager.GetModule <MasterSpawner>();

            RegisterHandlers();

            InvokeRepeating("InvokedUpdate", MatchMakingPollRate, MatchMakingPollRate);
        }
Exemple #2
0
        public override void Initialize(InsightServer insight, ModuleManager manager)
        {
            server        = insight;
            authModule    = manager.GetModule <ServerAuthentication>();
            gameManager   = manager.GetModule <ServerGameManager>();
            masterSpawner = manager.GetModule <MasterSpawner>();

            RegisterHandlers();

            server.transport.OnServerDisconnected += HandleDisconnect;

            InvokeRepeating("InvokedUpdate", MatchMakingPollRate, MatchMakingPollRate);
        }