|
|
@@ -35,9 +35,8 @@ public class ESpirits_Cook : MonoBehaviour
|
|
|
|
|
|
public float larger; //顾客变大的程度
|
|
|
|
|
|
- private GameObject player1;
|
|
|
- private GameObject player2;
|
|
|
private GameObject target;
|
|
|
+ public SearchTrigger searchtrigger;
|
|
|
|
|
|
public GameObject lockEffect;
|
|
|
private GameObject curLock;
|
|
|
@@ -75,6 +74,7 @@ public class ESpirits_Cook : MonoBehaviour
|
|
|
//customers = new List<GameObject>();
|
|
|
destX = DestinationX();
|
|
|
text.text = chuan.ToString();
|
|
|
+ ene.noOnSearchState = true;
|
|
|
//curLock = Instantiate(lockEffect, cook.transform.position, new Quaternion(0, 0, 0, 0), cook.transform);
|
|
|
}
|
|
|
|
|
|
@@ -89,6 +89,11 @@ public class ESpirits_Cook : MonoBehaviour
|
|
|
ChangeState(cookState.run);
|
|
|
}
|
|
|
|
|
|
+ private void TargetInteract()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
private void OnTriggerEnter(Collider other)
|
|
|
{
|
|
|
//路过发串
|
|
|
@@ -199,22 +204,6 @@ public class ESpirits_Cook : MonoBehaviour
|
|
|
state = cs;
|
|
|
}
|
|
|
|
|
|
- private void ChoosePlayer()
|
|
|
- {
|
|
|
- player1 = PlayersInput.instance[0].gameObject;
|
|
|
- player2 = PlayersInput.instance[1].gameObject;
|
|
|
- float dis1 = Vector2.Distance(player1.transform.position, transform.position);
|
|
|
- float dis2 = Vector2.Distance(player2.transform.position, transform.position);
|
|
|
- if (dis1 < dis2)
|
|
|
- {
|
|
|
- target = player1;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- target = player2;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
private void AimAtPlayer()
|
|
|
{
|
|
|
lockEffect.transform.position = transform.position;
|