using System.Collections; using System.Collections.Generic; using UnityEngine; namespace STRIPS { [CreateAssetMenu(fileName = "New Goal", menuName = "STRIPS/Create New Goal", order = 3)] public class StripsGoal : ScriptableObject { public string goalName; public StripsAction[] actions; private List available; public List Available { get { return available; } } public void UpdateActionConditionals(StripsVariableMapping.PackageMapping updatedMappings) { List available = new List (); for(int i =0; i < actions.Length; i++) { if (actions[i].EvaluateConditionals(updatedMappings)) { available.Add(actions[i]); } } this.available=available; } } }