|
|
@@ -9,6 +9,8 @@ public class SprintLinkTrigger : MonoBehaviour
|
|
|
public Dictionary<Enemy, bool> linkedEnemyDic;
|
|
|
public List<Enemy> linkedEnemy;
|
|
|
|
|
|
+ public int playerID;
|
|
|
+
|
|
|
private void Awake()
|
|
|
{
|
|
|
linkedEnemyDic = new Dictionary<Enemy, bool>();
|
|
|
@@ -45,6 +47,6 @@ public class SprintLinkTrigger : MonoBehaviour
|
|
|
{
|
|
|
linkedEnemyDic.Add(enemy, true);
|
|
|
linkedEnemy.Add(enemy);
|
|
|
- PlayersInput.instance[0].playerRope.BeLink(enemy);
|
|
|
+ PlayersInput.instance[playerID].playerRope.BeLink(enemy);
|
|
|
}
|
|
|
}
|