|
@@ -1356,6 +1356,10 @@ public class PlayerController : MoveCharacter
|
|
|
mesh = dem.mesh;
|
|
mesh = dem.mesh;
|
|
|
mats = dem.mats;
|
|
mats = dem.mats;
|
|
|
outlineMats = dem.outlineMats;
|
|
outlineMats = dem.outlineMats;
|
|
|
|
|
+ if (dem.canFly)
|
|
|
|
|
+ {
|
|
|
|
|
+ rb.constraints = RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
|
|
+ }
|
|
|
/* ·¨Ê¦³ö³¡ÊͷŸ¡¿Õ³¡
|
|
/* ·¨Ê¦³ö³¡ÊͷŸ¡¿Õ³¡
|
|
|
if (id == 3)
|
|
if (id == 3)
|
|
|
{
|
|
{
|
|
@@ -1375,6 +1379,7 @@ public class PlayerController : MoveCharacter
|
|
|
|
|
|
|
|
public void EndTransfiguration(int id)
|
|
public void EndTransfiguration(int id)
|
|
|
{
|
|
{
|
|
|
|
|
+ rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
isTransfiguration = false;
|
|
isTransfiguration = false;
|
|
|
mecanim = playerMe;
|
|
mecanim = playerMe;
|
|
|
ani = playerAni;
|
|
ani = playerAni;
|