예제 #1
0
        public virtual void Update()
        {
            rootMachine.Update();

            var t = rootMachine.CheckTransitions();

            if (t != null)
            {
                CallIfSet(t.notify);
                t.lastTimeTaken = Time.time;
                TransitionTo(t.to);
            }
        }
예제 #2
0
        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);
            }
        }