protected override IDisposable[] Init() { Alkar.InjectMonoBehaviour(this); _handler = new BallHandler(_ballKind); _jumpDirectionProvider = new JumpDirectionProvider(); return(new IDisposable[] { _handler.JumpForce.Subscribe(Jump), _handler.RotationTorque.Subscribe(Rotate), _handler.ScaleAnimation.Subscribe(ScaleAnimation) }); }
public void TrackPlayerHandler(BallHandler ballHandler) { _playerBallHandler = ballHandler; }
public void TrackHandler(BallHandler handler) { _playerPositionService.TrackPlayerHandler(handler); }
public void TrackHandler(BallHandler handler) { _handler = handler; }