public virtual void Update() { rootMachine.Update(); var t = rootMachine.CheckTransitions(); if (t != null) { CallIfSet(t.notify); t.lastTimeTaken = Time.time; TransitionTo(t.to); } }
public override void GetInput() { base.GetInput(); rootMachine.Update(); var t = rootMachine.CheckTransitions(); if (t != null) { CallIfSet(t.notify); t.lastTimeTaken = Time.unscaledTime; TransitionTo(t.to); } }