Exemplo n.º 1
0
        public override void OnEnter()
        {
            //TODO: Geräusch, dass ein Enemy den Player im Visier hat.
            Intercom.PlayerIsInTargetOf("a strong defense tower");

            // We start attack, aim and fire"!
            ((TowerAI)Owner).Weapons.PrimaryWeapon.AimAt(Player.GetDirectionToPlayer(Game, Owner.GlobalPosition, 0));
            ((TowerAI)Owner).Weapons.PrimaryWeapon.BeginFire();

            ((TowerAI)Owner).Weapons.SecondaryWeapon.AimAt(Player.GetDirectionToPlayer(Game, Owner.GlobalPosition, 0));
            ((TowerAI)Owner).Weapons.SecondaryWeapon.BeginFire();
        }