rj-action-library/Runtime/Interactions/CharacterController/Actions/SetCharacterMoveSpeed.cs

28 lines
506 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;
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;
}
}
}