Ejemplo n.º 1
0
 private void Start()
 {
     movePlayer              = player.GetComponent <MovePlayerBomberdev>();
     callbackEndCommand      = () => ExecuteNextCommand();
     commandManager          = GetComponent <CommandManagerBomberdev>();
     commandManager.callback = callbackEndCommand;
 }
Ejemplo n.º 2
0
 public void Right(MovePlayerBomberdev movePlayer)
 {
     movePlayer.Translate(Direction.RIGHT, _callback);
 }
Ejemplo n.º 3
0
 public void Left(MovePlayerBomberdev movePlayer)
 {
     movePlayer.Translate(Direction.LEFT, _callback);
 }
Ejemplo n.º 4
0
 public void Down(MovePlayerBomberdev movePlayer)
 {
     movePlayer.Translate(Direction.DOWN, _callback);
 }
Ejemplo n.º 5
0
 public void Up(MovePlayerBomberdev movePlayer)
 {
     movePlayer.Translate(Direction.UP, _callback);
 }