//This function will choose if the target remains on the field. private void Action_IfDeadKillUnit(UnitCore target) { if (target.health < 0) { target.death(); } }
//This function will choose if the target remains on the field. public void Action_IfDeadKillUnit(UnitCore target) { if (target.health <= 0) { target.death(); } }
/************************************************************************************************ Action * These functions do things and combine get, set, check and attack. * If your created function does not fit any of the above category, it can be put as an action. */ //triggers the target unit's death. private void Action_CallUnitDeath(UnitCore target) { target.death(); }