예제 #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);
 }
예제 #2
0
 public virtual void SetUp(TetroMovement movement)
 {
     this.movement = movement;
     tetro         = movement.Tetro;
     tiles         = tetro.Tiles;
     grid          = movement.Grid;
     settings      = movement.Settings;
 }
예제 #3
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     EventManager.StartListening(EventNames.TetroMoveRight, ShiftRight);
     EventManager.StartListening(EventNames.TetroMoveLeft, ShiftLeft);
 }
예제 #4
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     EventManager.StartListening(EventNames.TetroMoveDrop, DropTetro);
 }
예제 #5
0
 public override void SetUp(TetroMovement movement)
 {
     base.SetUp(movement);
     tetro.OnStartFalling.AddListener(OnStartFalling);
 }