public override bool Perform() { if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.VEHICLE) { defenseSystem.DestroyUnit("by Cannon"); return(true); } return(false); }
public override bool Perform() { if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.INFANTRYMAN) { defenseSystem.DestroyUnit("by Laser"); return(true); } return(false); }
public override bool Perform() { //Debug.Log("Fire Cannon"); if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.AIRPLANE) { defenseSystem.DestroyUnit("by Missile"); return(true); } return(false); }