blob: 20034af082fe1044a0142f96c3de880436688803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
{
[TaskCategory("Basic/Vector3")]
[TaskDescription("Sets the value of the Vector3.")]
public class SetValue : Action
{
[Tooltip("The Vector3 to get the values of")]
public SharedVector3 vector3Value;
[Tooltip("The Vector3 to set the values of")]
public SharedVector3 vector3Variable;
public override TaskStatus OnUpdate()
{
vector3Variable.Value = vector3Value.Value;
return TaskStatus.Success;
}
public override void OnReset()
{
vector3Value = vector3Variable = Vector3.zero;
}
}
}
|