Пример #1
0
 public void Throw(Vector2 velocity)
 {
     Thrown        = true;
     ThrowVelocity = velocity;
     _actor.SetVerticalVelocity(velocity.y);
     _actor.Active = true;
 }
Пример #2
0
 private void FixedUpdate()
 {
     if (Jumping)
     {
         timeJump += Time.deltaTime;
         player.SetVerticalVelocity((Mathf.Lerp(250, 350, timeJump * 5)) * Time.deltaTime * 47f);
     }
 }