|
|
@@ -99,7 +99,10 @@ public class Spirits_Cook : MonoBehaviour
|
|
|
|
|
|
private void TargetInteract()
|
|
|
{
|
|
|
- target = searchtrigger.GetMinDisTarget(dem.targetTypes, dem.canHitFly);
|
|
|
+ if (state != cookState.back && state != cookState.cook)
|
|
|
+ {
|
|
|
+ target = searchtrigger.GetMinDisTarget(dem.targetTypes, dem.canHitFly);
|
|
|
+ }
|
|
|
if (target != null)
|
|
|
{
|
|
|
if (state == cookState.sell && (target.gameObject.layer == 7 || target.gameObject.layer == 8 || target.gameObject.layer == 6))
|
|
|
@@ -128,7 +131,7 @@ public class Spirits_Cook : MonoBehaviour
|
|
|
//×¥ÈË
|
|
|
else if (state == cookState.run)
|
|
|
{
|
|
|
- if (target.gameObject.layer == 8)
|
|
|
+ if (target.gameObject.layer == 8 && target.GetComponent<MoveCharacter>().canMove)
|
|
|
{
|
|
|
food = target.gameObject;
|
|
|
if (!target.isDie)
|