常用方法
常用方法
常用方法
常用方法
public void Damage(Attack attack) { int finalDamage = attack.GetFinalDamage(); //Damage baseUnit.CurrentHealth -= finalDamage; //Adjust Healthbar AdjustHealthBar(); //Do all relevant checks regarding death and abilities if (baseUnit.CurrentHealth <= 0) { attack.ApplyOnDeath(); StartCoroutine(Die()); } }