2025-07-25 08:13:35 +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-07-25 08:13:35 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class SetCharacterControllerAction:Action
|
|
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public CharacterControllerAction characterControllerAction;
|
|
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
|
public bool enabled = true;
|
|
|
|
|
|
|
|
|
|
protected override void _OnTrigger()
|
|
|
|
|
{
|
|
|
|
|
if ( characterControllerAction == null )
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
characterControllerAction.enabled = enabled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|