Example #1
0
 public virtual void mOnSpawn(MonoBehaviour towerManager)
 {
     if (this.enabled)
     {
         EntityLifeComponent.ResetLife();
     }
 }
Example #2
0
        public virtual void OnEnable()
        {
            if (EntityType != EntityEnum.None)
            {
                BattleServer.AddEntity(this);
            }

            if (EntityLifeComponent != null)
            {
                EntityLifeComponent.ResetLife();
                EntityLifeComponent.OnNoLife += Life_OnNoLife;
            }
        }