示例#1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        Vector2 movInput = new Vector2(XCI.GetAxis(XboxAxis.LeftStickX), XCI.GetAxis(XboxAxis.LeftStickY));
        Vector2 aimInput = new Vector2(XCI.GetAxis(XboxAxis.RightStickX), XCI.GetAxis(XboxAxis.RightStickY));

        movPhysics.Move(movInput);

        if (aimInput.magnitude > 0)
        {
            spellController.MoveOrb(aimInput);
        }

        if (controlScheme.Actions[0].IsPressed())
        {
            spellController.Launch(Spells[0], transform, controlScheme.Actions[0]);
        }
    }