Ejemplo n.º 1
0
 //This function will choose if the target remains on the field.
 private void Action_IfDeadKillUnit(UnitCore target)
 {
     if (target.health < 0)
     {
         target.death();
     }
 }
Ejemplo n.º 2
0
 //This function will choose if the target remains on the field.
 public void Action_IfDeadKillUnit(UnitCore target)
 {
     if (target.health <= 0)
     {
         target.death();
     }
 }
Ejemplo n.º 3
0
/************************************************************************************************               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();
    }