Exemple #1
0
        /// <inheritdoc/>
        protected override void UnsubscribeEvents()
        {
            Instance = null;

            PlayerEvent.Destroying -= OnDestroying;
            PlayerEvent.Died       -= OnDied;
            PlayerEvent.Shooting   -= OnShooting;

            base.UnsubscribeEvents();
        }
Exemple #2
0
        /// <inheritdoc/>
        protected override void SubscribeEvents()
        {
            Instance = this;

            PlayerEvent.Destroying += OnDestroying;
            PlayerEvent.Died       += OnDied;
            PlayerEvent.Shooting   += OnShooting;

            base.SubscribeEvents();
        }