Пример #1
0
        public void UnregisterEvents()
        {
            Server.RoundStarted -= server.OnRoundStart;
            Warhead.Stopping    -= warhead.OnStopping;

            player  = null;
            server  = null;
            warhead = null;
        }
Пример #2
0
        public void RegisterEvents()
        {
            player  = new Handlers.PlayerEvents();
            server  = new Handlers.ServerEvents();
            warhead = new Handlers.WarheadEvents();

            Server.RoundStarted += server.OnRoundStart;
            Warhead.Stopping    += warhead.OnStopping;
        }