-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathClearVector3List.cs
More file actions
38 lines (26 loc) · 855 Bytes
/
ClearVector3List.cs
File metadata and controls
38 lines (26 loc) · 855 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
using UnityEngine;
using System.Collections.Generic;
namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
{
[TaskCategory("Basic/SharedVariable")]
[TaskDescription("Removes a vector3 to a vector3 list at an index.")]
public class ClearVector3List : Action
{
[RequiredField]
[Tooltip("The SharedVector3List to set")]
public SharedVector3List storedVector3List;
public override void OnAwake()
{
// storedVector3List.Value = new List<Vector3>();
}
public override TaskStatus OnUpdate()
{
storedVector3List.Value.Clear();
return TaskStatus.Success;
}
public override void OnReset()
{
storedVector3List = null;
}
}
}