Behavior Canceling & Grouping

Behaviors are now grouped, behaviors within a group can cancel execution of the rest of the group
This commit is contained in:
hyperion51 2020-05-11 01:17:10 +01:00
commit fc94531566
35 changed files with 613 additions and 190 deletions

View file

@ -6,7 +6,7 @@ using static Unity.Mathematics.math;
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class ReflectorData : BehaviorData
{
[InspectableField, JsonProperty("crossSection"), Key(0)]
[InspectableField, JsonProperty("crossSection"), Key(1)]
public PerformanceStat CrossSection = new PerformanceStat();
// [InspectableAnimationCurve, JsonProperty("visibility"), Key(1)]
@ -40,7 +40,12 @@ public class Reflector : IBehavior
{
}
public void Update(float delta)
public bool Update(float delta)
{
return true;
}
public void Remove()
{
}
}