Esempio n. 1
0
 public void shootAI(Player player, AI Ai)
 {
     this.player = player;
     this.enemy = Ai;
     shoot = true;
     currentPosition = new Vector2(player.getPosition().X, player.getPosition().Y);
     destinationPosition = new Vector2(Ai.getPosition().X+2, Ai.getPosition().Y);
 }
Esempio n. 2
0
 public void shootPlayer(Player player)
 {
     shoot = true;
     destinationPosition = new Vector2(player.getPosition().X, player.getPosition().Y);
 }