private bool HandleWalkTouchEndEvent() { if (!WalkEnd) { return(false); } _joystick1.StartFading(); _stickiness.StopWalking(true); _joystick1.OnPointerUp(); _stickiness.ReinitSpeed(); _hero.StopDisplayGhosts(); _runInitialized = false; _walkDragging = false; _walkInitialized = false; return(true); }
public virtual void CalculatedJump(Vector2 velocity) { _stickiness.Detach(); _stickiness.StopWalking(false); LoseJump(); _dynamicEntity.Rigidbody.velocity = velocity; _poolManager.GetPoolable <Dash>(Transform.position, Quaternion.LookRotation(Vector3.forward, velocity)); if (TrajectoryInUse()) { CommitJump(); } }
public void SetWalkingActivation(bool active, bool grounded) { if (Utils.IsNull(Stickiness)) { return; } if (!active) { Stickiness.StopWalking(grounded); } Stickiness.CanWalk = active; }