|
|
@@ -1541,7 +1541,21 @@ public class PlayerController : MoveCharacter
|
|
|
demonicObj.transform.localEulerAngles = Vector3.zero;
|
|
|
demonicObj.transform.localScale = new Vector3(1, 1, 1);
|
|
|
Vector3 offset = demonicSummonPos[id];
|
|
|
- demonic.CheckTurn(-bodyTrans.localScale.x);
|
|
|
+ //demonic.CheckTurn(-bodyTrans.localScale.x);
|
|
|
+ if(bodyTrans.localScale.x > 0)
|
|
|
+ {
|
|
|
+ if (demonic.bodyTrans.localScale.x < 0)
|
|
|
+ {
|
|
|
+ demonic.Turn();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (demonic.bodyTrans.localScale.x > 0)
|
|
|
+ {
|
|
|
+ demonic.Turn();
|
|
|
+ }
|
|
|
+ }
|
|
|
demonicObj.transform.position = transform.position
|
|
|
+ new Vector3(bodyTrans.localScale.x > 0 ? offset.x: -offset.x, offset.y, offset.z);
|
|
|
if (demonic.canFly)
|