|
|
@@ -48,7 +48,7 @@ public class MoveCharacter : Character
|
|
|
private Vector3 oneClockwise = new Vector3(0, 0, 1);
|
|
|
private Vector3 oneCounterClockwise = new Vector3(0, 0, -1);
|
|
|
|
|
|
- private int floatState; //0:不漂浮;1:漂浮中;2:飘着;3:掉下去
|
|
|
+ public int floatState; //0:不漂浮;1:漂浮中;2:飘着;3:掉下去
|
|
|
|
|
|
private GameObject spine;
|
|
|
private MeshRenderer mesh;
|
|
|
@@ -72,7 +72,6 @@ public class MoveCharacter : Character
|
|
|
}
|
|
|
if (state == 0)
|
|
|
{
|
|
|
- print(1);
|
|
|
mesh.materials = outlineMats;
|
|
|
}
|
|
|
else
|
|
|
@@ -106,7 +105,7 @@ public class MoveCharacter : Character
|
|
|
}
|
|
|
|
|
|
|
|
|
- private void Update()
|
|
|
+ public void Update()
|
|
|
{
|
|
|
if (beLarger)
|
|
|
{
|
|
|
@@ -132,7 +131,8 @@ public class MoveCharacter : Character
|
|
|
{
|
|
|
RotateSelf();
|
|
|
curTime += Time.deltaTime;
|
|
|
- transform.position = new Vector3(origPos.x + backSpeed * (curTime - pastTime), height, origPos.z);
|
|
|
+ origPos.x += backSpeed * (curTime - pastTime);
|
|
|
+ transform.position = new Vector3(origPos.x, height, origPos.z);
|
|
|
if (curTime >= floatTime)
|
|
|
{
|
|
|
floatState = 3;
|