|
|
@@ -267,14 +267,15 @@ public class PlayerController : MoveCharacter
|
|
|
transform.position = new Vector3(142 + 4 * playerId, 0, 0);
|
|
|
playerRope.playerId = playerId;
|
|
|
sprintLinkTrigger.playerID = playerId;
|
|
|
+ if (PlayersInput.instance[1] == PlayersInput.instance[0])
|
|
|
+ {
|
|
|
+ PlayersInput.instance[1] = this;
|
|
|
+ }
|
|
|
PlayersInput.instance[playerId] = this;
|
|
|
skeletonMecanim.skeletonDataAsset = playerSpine[playerId];
|
|
|
|
|
|
|
|
|
- if (!PlayersInput.instance[1])
|
|
|
- {
|
|
|
- PlayersInput.instance[1] = this;
|
|
|
- }
|
|
|
+
|
|
|
//else
|
|
|
//{
|
|
|
// DestroyImmediate(gameObject);
|