示例#1
0
        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();
        }
示例#2
0
 private Vector2 GetInrunVelocity(int gate) => GetInrunVelocity(hill.GatePoint(gate));