Example #1
0
    protected void HandleMovingInput(MovingInput movingInput)
    {
        if (this is AvatarStateAttack_1)
        {
            return;
        }

        if (movingInput.Pressed)
        {
            MoveInDirection(new Vector3(
                                movingInput.HorizontalValue,
                                0.0f,
                                movingInput.VerticalValue).normalized);
        }
    }
Example #2
0
 private void OnMovingInputBroadcasted(MovingInput movingInput)
 {
     HandleMovingInput(movingInput);
 }