|
|
@ -17,14 +17,11 @@ public class Ghost { |
|
|
|
this.position = newPosition; |
|
|
|
} |
|
|
|
|
|
|
|
public void move(Vector2 direction) { |
|
|
|
this.position = this.position.Add(direction); |
|
|
|
} |
|
|
|
|
|
|
|
public void spawn() { |
|
|
|
this.position = gameManager.map.ghostSpawns[ghostNumber].Clone(); |
|
|
|
} |
|
|
|
|
|
|
|
public void move() { |
|
|
|
move(behavior.GetDirection(this)); |
|
|
|
this.position = this.position.Add(behavior.GetDirection(this)); |
|
|
|
} |
|
|
|
} |