first commit

This commit is contained in:
Chris
2025-03-12 14:22:16 -04:00
commit 0ad0c01249
1999 changed files with 189708 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using NodeCanvas.Framework;
using ParadoxNotion;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Category("Input (Legacy System)")]
public class CheckButtonInput : ConditionTask
{
public PressTypes pressType = PressTypes.Down;
[RequiredField] public BBParameter<string> buttonName = "Fire1";
protected override string info {
get { return pressType.ToString() + " " + buttonName.ToString(); }
}
protected override bool OnCheck() {
if ( pressType == PressTypes.Down )
return Input.GetButtonDown(buttonName.value);
if ( pressType == PressTypes.Up )
return Input.GetButtonUp(buttonName.value);
if ( pressType == PressTypes.Pressed )
return Input.GetButton(buttonName.value);
return false;
}
}
}