売り切れ時にお客さんが帰るルートを購入時と同じロジックに変更

This commit is contained in:
kimura 2021-09-16 19:22:17 +09:00
parent 9d3b472350
commit 27edf3e392
2 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,7 @@ public enum CustomerState
Wait,
Order,
Leave,
SadLeave,
EatingLeave,
}
@ -164,6 +165,10 @@ public class CustomerController : MonoBehaviour
case CustomerState.Leave:
ForceSetMove(CustomerMovingType.WalkSide);
break;
case CustomerState.SadLeave:
AddMove(CustomerMovingType.WalkFront);
AddMove(CustomerMovingType.WalkSide);
break;
case CustomerState.EatingLeave:
AddMove(CustomerMovingType.WalkFrontEat);
AddMove(CustomerMovingType.WalkSideEat);

View File

@ -173,7 +173,7 @@ public class Market : MonoBehaviour
controller.CallWaitForSeconds(1.5f, () =>
{
controller.ShowComplain();
controller.ChangeCustomerState(CustomerState.Leave);
controller.ChangeCustomerState(CustomerState.SadLeave);
});
dontBuyCustomerList.Add(controller);
continue;