Example #1
0
    // NOTE: Input was refactored to pull from ControllerInput instance
    private void Update()
    {
        // Movement
        movement.OnInput(rb, input.LS_X, input.LS_Y);
        // Attack
        Vector3 offset   = movement.GetVelocity(rb, input.LS_X, input.LS_Y);
        Vector3 rotation = aim.GetRotation(input.RS_X, input.RS_Y, offset);

        attack.OnInput(this.transform, input.RT, offset, rotation);
        aimUI.SetRotation(input.RS_X, input.RS_Y);
        // Dash
        dash.OnInput(rb, input.LT);
        // Ability
        ability.OnInput(this.transform, input.LB || input.RB, rotation);
    }