Beispiel #1
0
        /// <summary>
        /// Dies this instance.
        /// </summary>
        protected virtual void Die()
        {
            ResetTarget();
            EffectsInspector.ClearEffects();
            OnDie?.Invoke(this);
            OnStopShowing?.Invoke(this);
            SetSelected(false);
            UpdateSelfTarget(show: false);

            DieFinalize();
        }
Beispiel #2
0
 /// <summary>
 /// Called when the attached Behaviour is destroying.
 /// </summary>
 protected virtual void OnDestroy() => EffectsInspector.ClearEffects();