mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
Corrected merge errors
This commit is contained in:
parent
c73e09979a
commit
8d80c2fbdc
@ -71,11 +71,12 @@ public class Astronaut : MonoBehaviour {
|
||||
_astronautAnimator = GetComponent<AstronautAnimator>();
|
||||
_astronautAnimator.aspi = this;
|
||||
State = AstronautState.Idle;
|
||||
|
||||
if (!planet)
|
||||
{
|
||||
p if (!planet)
|
||||
{e<PlanetManager>();
|
||||
planet = FindObjectOfType<PlanetManager>();
|
||||
}
|
||||
|
||||
State = AstronautState.Idle;
|
||||
//Debug.Log(planet.GetPlanetRadius(0));
|
||||
theta = 0;
|
||||
@ -232,11 +233,11 @@ public class Astronaut : MonoBehaviour {
|
||||
public void Dash()
|
||||
{
|
||||
|
||||
iS(Time.time < DashTime + lastDashTime)
|
||||
if (Time.time < DashTime + lastDashTime)
|
||||
return;
|
||||
|
||||
if (_state >= AstronautState.Ejecting)
|
||||
return;
|
||||
if (State >= AstronautState.Ejecting)
|
||||
return;
|
||||
|
||||
lastDashTime = Time.time;
|
||||
planet.PushWedge(this.theta);
|
||||
@ -272,14 +273,5 @@ public class Astronaut : MonoBehaviour {
|
||||
State = AstronautState.Walking;
|
||||
_astronautAnimator.Walk();
|
||||
}
|
||||
|
||||
if (GUI.Button(new Rect(10, 190, 150, 50), "Eject"))
|
||||
{
|
||||
Debug.Lif(State == AstronautState.Walking)
|
||||
{ StartCoroutine("WalkingStance");
|
||||
}
|
||||
{
|
||||
StartCoroutine("WalkingStance");
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user