예제 #1
0
        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;
 }
예제 #3
0
 public void TrackHandler(BallHandler handler)
 {
     _playerPositionService.TrackPlayerHandler(handler);
 }
예제 #4
0
 public void TrackHandler(BallHandler handler)
 {
     _handler = handler;
 }