Search Unity

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

    Cloud-J

    Joined:
    Feb 11, 2022
    Posts:
    4
    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
    1.png
    This is the code for status a
    22.png
    This is the code for the B state. Debugging does not produce text
    777.png
    This is the code for state B, which can be debugged to produce text
    888.png
    This is the code for the c state
    44.png

    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