public virtual void Death(BaseUnit caster) { foreach (var item in componets) { if (item.IsEnable) { item.Death(caster); } } Callback_OnDeath?.Invoke(caster); }
public virtual void OnDeath() { foreach (var item in componets) { if (item.IsEnable) { item.OnDeath(); } } Callback_OnDeath?.Invoke(); IsInited = false; }