protected internal override void AddToActor(CompositeActor actor) { base.AddToActor(actor); string functionName = $"checkTransition{Name}"; conditionFunction = actor.ScriptSystem.LoadString($"return {condition}", functionName); }
protected internal virtual void RemoveFromActor(CompositeActor actor) { Actor = null; }
protected internal virtual void AddToActor(CompositeActor actor) { Actor = actor; }
protected internal override void RemoveFromActor(CompositeActor actor) { conditionFunction.Dispose(); base.RemoveFromActor(actor); }