|
|
|
|
|
|
using System.Linq; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Events; |
|
|
|
using UnityEngine.Serialization; |
|
|
|
|
|
|
|
namespace GameplayIngredients.Logic |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
public InclusionMode inclusionMode = InclusionMode.IsTarget; |
|
|
|
|
|
|
|
[ReorderableList, FormerlySerializedAs("Calls")] |
|
|
|
public Callable[] OnTestValid; |
|
|
|
|
|
|
|
public Callable[] Calls; |
|
|
|
public Callable[] OnTestInvalid; |
|
|
|
|
|
|
|
Call(Calls, instigator); |
|
|
|
Call(OnTestValid, instigator); |
|
|
|
else |
|
|
|
Call(OnTestInvalid, instigator); |
|
|
|
} |
|
|
|
} |
|
|
|
} |