|
|
@@ -43,7 +43,7 @@ public class ESpirits_Float : MonoBehaviour
|
|
|
curFe.SetActive(false);
|
|
|
curLock.SetActive(false);
|
|
|
player1 = PlayersInput.instance[0].gameObject;
|
|
|
- //player2 = PlayersInput.instance[1].gameObject;
|
|
|
+ player2 = PlayersInput.instance[1].gameObject;
|
|
|
}
|
|
|
|
|
|
private void Start()
|
|
|
@@ -66,7 +66,7 @@ public class ESpirits_Float : MonoBehaviour
|
|
|
|
|
|
private void ChoosePlayer()
|
|
|
{
|
|
|
- /*
|
|
|
+
|
|
|
float dis1 = Vector2.Distance(player1.transform.position, transform.position);
|
|
|
float dis2 = Vector2.Distance(player2.transform.position, transform.position);
|
|
|
if (dis1 < dis2)
|
|
|
@@ -76,8 +76,8 @@ public class ESpirits_Float : MonoBehaviour
|
|
|
else
|
|
|
{
|
|
|
target = player2;
|
|
|
- }*/
|
|
|
- target = player1;
|
|
|
+ }
|
|
|
+ //target = player1;
|
|
|
}
|
|
|
|
|
|
private void FollowPlayer()
|