예제 #1
0
 public KillIntent(InputManager inputManager, Camera c, Player p, Enemy e) : base(inputManager, c, p, e.Rectangle)
 {
     enemy      = e;
     goToIntent = new GoToIntent(inputManager, c, p, e.Rectangle);
 }
예제 #2
0
 public TeleportIntent(InputManager im, Camera c, Player p, Rectangle r, Vector2 positionToTp) : base(im, c, p, r)
 {
     goToIntent         = new GoToIntent(im, c, p, Rectangle);
     positionToTeleport = positionToTp;
 }