Home > other >  From the Unity of animation switch with a delay (this option is the exit time)
From the Unity of animation switch with a delay (this option is the exit time)

Time:04-10

 
If (h & gt; 0)
{
TankSprite=tankSprites [1];
GameObject. GetComponent (a). SetFloat (" h ", h);
GameObject. GetComponent (a). SetFloat (" v ", 0);
}

Code logic is: if you move to the right, change the tank map, animation machine h into the value of the horizontal v is zero, the animation state machine to run is real-time switch, is turning to turn all press the key again, map and steering is normal no problem, if is the problem on this side of the animation, the ball ball help to see what problems

  • Related