rokojori_action_library/Runtime/Interactions/CharacterController/Actions/SetCharacterMoveSpeed.cs

29 lines
533 B
C#
Raw Normal View History

2025-05-27 06:51:48 +00:00
using Godot;
using System.Collections;
using System.Collections.Generic;
using Godot.Collections;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2025-05-27 06:51:48 +00:00
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SetCharacterMoveSpeed:Action
{
[Export]
public CharacterMovement characterMovement;
[Export]
public float characterMoveSpeed;
protected override void _OnTrigger()
{
if ( characterMovement == null )
{
return;
}
characterMovement.moveSpeed = characterMoveSpeed;
}
}
}