fix bug: stucked when try to stop playing battlestartplayer

master 1.1
wlt233 8 months ago
parent 15122aac08
commit 2ab793304f

@ -344,6 +344,7 @@ public class Main : MonoBehaviour
#region Action #region Action
public void setState(int i) public void setState(int i)
{ {
setTrigger("EventStep");
if (i == 6) removeWeapon(); if (i == 6) removeWeapon();
if (i == 2 || i == 3) rotate180(); if (i == 2 || i == 3) rotate180();
else rotate0(); else rotate0();
@ -415,7 +416,7 @@ public class Main : MonoBehaviour
setTrigger("BattleStartPlayer"); setTrigger("BattleStartPlayer");
setTrigger("EventStep"); setTrigger("EventStep");
Invoke("EventStep", 0.2f); Invoke("EventStep", 0.2f);
Invoke("EventStep", 5f); //Invoke("EventStep", 5f);
} }
public void setSpeed(float value) public void setSpeed(float value)

Loading…
Cancel
Save