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