IndieGame/client/Assets/Scripts/ThridParty/NodeCanvasExtension/ActionTask/SetPlayerInputOperation.cs

30 lines
683 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

using NodeCanvas.Framework;
using ParadoxNotion.Design;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ether
{
[Category("扩展/设置玩家按键输入操作")]
[Description("设置玩家按键输入操作")]
[Name("设置玩家按键输入操作")]
public class SetPlayerInputOperation : ActionTask
{
public BBParameter<bool> isEnabled;
protected override string info
{
get { return $"玩家按键输入:{isEnabled}"; }
}
protected override void OnExecute()
{
GlobalController.SetPlayerInputOperation(isEnabled.value);
}
}
}