예제 #1
0
    public override bool Perform()
    {
        if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.INFANTRYMAN)
        {
            defenseSystem.DestroyUnit("by Laser");
            return(true);
        }

        return(false);
    }
예제 #2
0
    public override bool Perform()
    {
        if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.VEHICLE)
        {
            defenseSystem.DestroyUnit("by Cannon");
            return(true);
        }

        return(false);
    }
예제 #3
0
    public override bool Perform()
    {
        //Debug.Log("Fire Cannon");
        if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.AIRPLANE)
        {
            defenseSystem.DestroyUnit("by Missile");
            return(true);
        }

        return(false);
    }
예제 #4
0
 public override bool Test()
 {
     return(defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.AIRPLANE);
 }
 public override bool Test()
 {
     return(defenseSystem.GetScannedUnit().distance < radius);
 }
예제 #6
0
 public override bool Test()
 {
     return(defenseSystem.GetScannedUnit().isEnemy);
 }