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

        return(false);
    }
Esempio n. 2
0
    public override bool Perform()
    {
        if (defenseSystem.GetScannedUnit().type == DefenseSystem.ScannedUnit.ObjectType.INFANTRYMAN)
        {
            defenseSystem.DestroyUnit("by Laser");
            return(true);
        }

        return(false);
    }
Esempio n. 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);
    }