|
@@ -35,6 +35,7 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
{
|
|
|
[Header("玩家属性")]
|
|
[Header("玩家属性")]
|
|
|
public int playerId;
|
|
public int playerId;
|
|
|
|
|
+ public Vector2 pos;
|
|
|
public bool canJump;
|
|
public bool canJump;
|
|
|
public bool endTranSummon; //是否在结束变身后召唤英灵
|
|
public bool endTranSummon; //是否在结束变身后召唤英灵
|
|
|
public Animator aniCollider;
|
|
public Animator aniCollider;
|
|
@@ -416,7 +417,7 @@ public class PlayerController : MoveCharacter
|
|
|
PlayerInput playerInput = transform.GetComponent<PlayerInput>();
|
|
PlayerInput playerInput = transform.GetComponent<PlayerInput>();
|
|
|
spirits = GetComponent<Spirits>();
|
|
spirits = GetComponent<Spirits>();
|
|
|
playerId = playerInput.playerIndex;
|
|
playerId = playerInput.playerIndex;
|
|
|
- transform.position = new Vector3(142 + 4 * playerId, 0, 0);
|
|
|
|
|
|
|
+ transform.position = new Vector3(pos.x, pos.y, 0);
|
|
|
playerRope.playerId = playerId;
|
|
playerRope.playerId = playerId;
|
|
|
sprintLinkTrigger.playerID = playerId;
|
|
sprintLinkTrigger.playerID = playerId;
|
|
|
switch (playerId)
|
|
switch (playerId)
|