first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
|
||||
[Category("Input (Legacy System)")]
|
||||
public class GetMousePosition : ActionTask
|
||||
{
|
||||
|
||||
[BlackboardOnly] public BBParameter<Vector3> saveAs;
|
||||
public bool repeat;
|
||||
|
||||
protected override void OnExecute() { Do(); }
|
||||
protected override void OnUpdate() { Do(); }
|
||||
|
||||
void Do() {
|
||||
saveAs.value = Input.mousePosition;
|
||||
if ( !repeat ) { EndAction(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user