コード例 #1
0
        public override void UnregisterEvents()
        {
            EHandlers.Player.Hurting      -= player.OnHurting;
            EHandlers.Player.Dying        -= player.OnDying;
            EHandlers.Player.ChangingItem -= player.OnItemChanged;

            player = null;
            server = null;
        }
コード例 #2
0
        public override void RegisterEvents()
        {
            player = new Handlers.Player();
            server = new Handlers.Server();

            EHandlers.Player.Hurting      += player.OnHurting;
            EHandlers.Player.Dying        += player.OnDying;
            EHandlers.Player.ChangingItem += player.OnItemChanged;
        }