Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Please consult the switching of multiple state machines and the timer issues therein?

Discussion in 'Visual Scripting' started by Cloud-J, Mar 24, 2023.

  1. Cloud-J


    Feb 11, 2022
    Hey, guys, I found a strange thing. If I create three state machines, called abc, and use a timer to switch their transitions, the timer in the b state machine cannot complete all of them, and it will stay at 0.99. If only two state machines are normal, but the timer in the b state machine will have a time difference. Why does this happen?

    These are three states
    This is the code for status a
    This is the code for the B state. Debugging does not produce text
    This is the code for state B, which can be debugged to produce text
    This is the code for the c state

    As shown in the figure, when the state machine enters state b, the first timer debug does not produce srting b. The final results are only a and c。
    Last edited: Mar 25, 2023