public virtual void mOnSpawn(MonoBehaviour towerManager) { if (this.enabled) { EntityLifeComponent.ResetLife(); } }
public virtual void OnEnable() { if (EntityType != EntityEnum.None) { BattleServer.AddEntity(this); } if (EntityLifeComponent != null) { EntityLifeComponent.ResetLife(); EntityLifeComponent.OnNoLife += Life_OnNoLife; } }