public void SetGate(float val) { var gate = Mathf.RoundToInt(val); jumpData.Gate = gate; currentGate = gate; jumperPosition = new Vector3(hill.GatePoint(gate).x, hill.GatePoint(gate).y, 0); jumperRotation.eulerAngles = new Vector3(0, 0, -hill.gamma); NewJump(); }
private Vector2 GetInrunVelocity(int gate) => GetInrunVelocity(hill.GatePoint(gate));