Exemplo n.º 1
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     tetro.OnDie.AddListener(ResetRotation);
     EventManager.StartListening(EventNames.TetroRotateClockwise, RotateClockwise);
     EventManager.StartListening(EventNames.TetroRotateCounterClockwise, RotateCounterClockwise);
 }
Exemplo n.º 2
0
 public virtual void SetUp(TetroMovement movement)
 {
     this.movement = movement;
     tetro         = movement.Tetro;
     tiles         = tetro.Tiles;
     grid          = movement.Grid;
     settings      = movement.Settings;
 }
Exemplo n.º 3
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     EventManager.StartListening(EventNames.TetroMoveRight, ShiftRight);
     EventManager.StartListening(EventNames.TetroMoveLeft, ShiftLeft);
 }
Exemplo n.º 4
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     EventManager.StartListening(EventNames.TetroMoveDrop, DropTetro);
 }
Exemplo n.º 5
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     tetro.OnStartFalling.AddListener(OnStartFalling);
 }