starting stun implement

This commit is contained in:
Sophie 2016-04-09 14:02:58 -04:00
parent ea0a08d91f
commit 1a4076cd77
2 changed files with 4 additions and 12 deletions

View File

@ -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;

View File

@ -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()