mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
starting stun implement
This commit is contained in:
parent
ea0a08d91f
commit
1a4076cd77
@ -211,7 +211,7 @@ public class Astronaut : MonoBehaviour {
|
||||
|
||||
float move = proj;
|
||||
|
||||
if (State >= AstronautState.Ejecting )
|
||||
if (State >= AstronautState.Dashing )
|
||||
return;
|
||||
|
||||
if (State < AstronautState.Jumping)
|
||||
@ -254,17 +254,15 @@ public class Astronaut : MonoBehaviour {
|
||||
|
||||
public void Jump()
|
||||
{
|
||||
if (State >= AstronautState.Dashing)
|
||||
return;
|
||||
|
||||
if (State == AstronautState.Jumping)
|
||||
{
|
||||
Dash();
|
||||
//State=AstronautState.Dashing; //TODO relacher l'état Dashing
|
||||
return;
|
||||
|
||||
}
|
||||
else if (State >= AstronautState.Dashing)
|
||||
return;
|
||||
else if (State >= AstronautState.Ejecting)
|
||||
return;
|
||||
|
||||
if (!grounded) return;
|
||||
|
||||
@ -277,7 +275,6 @@ public class Astronaut : MonoBehaviour {
|
||||
|
||||
public void Dash()
|
||||
{
|
||||
|
||||
if (Time.time < DashTime + lastDashTime)
|
||||
return;
|
||||
|
||||
|
||||
@ -41,7 +41,6 @@ public class AstronautAnimator : MonoBehaviour {
|
||||
|
||||
public void Walk(bool right)
|
||||
{
|
||||
Debug.Log("Walking!");
|
||||
StartCoroutine(Rotate(right? -1 : 1));
|
||||
}
|
||||
|
||||
@ -77,12 +76,8 @@ public class AstronautAnimator : MonoBehaviour {
|
||||
|
||||
if (aspi.State == Astronaut.AstronautState.Walking)
|
||||
{
|
||||
Debug.Log("Walking again");
|
||||
StartCoroutine(Rotate(-side));
|
||||
}
|
||||
else
|
||||
Debug.Log("Walking stop");
|
||||
//yield return null;
|
||||
}
|
||||
|
||||
public void EmitDustParticules()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user