public void SetIntent(CustomerIntentEnum intent, OrderForCustomer orderForCustomer) { //删除进度图标 RemoveStatusIconByType(CharacterStatusIconEnum.Pro); //停止所有进程 if (this) { StopAllCoroutines(); } this.customerIntent = intent; switch (customerIntent) { case CustomerIntentEnum.Walk: IntentForWalk(); break; case CustomerIntentEnum.Want: IntentForWant(); break; case CustomerIntentEnum.WaitSeat: IntentForWaitSeat(); break; case CustomerIntentEnum.GotoSeat: IntentForGoToSeat(orderForCustomer); break; case CustomerIntentEnum.WaitFood: IntentForWaitFood(); break; case CustomerIntentEnum.Eatting: IntentForEatting(); break; case CustomerIntentEnum.GotoPay: IntentForGotoPay(); break; case CustomerIntentEnum.WaitPay: IntentForWaitPay(); break; case CustomerIntentEnum.Leave: IntentForLeave(); break; case CustomerIntentEnum.WaitAccost: IntentForWaitAccost(); break; } NotifyAllObserver((int)CustomerNotifyEnum.StatusChange, (int)intent); }
/// <summary> /// 根据意图设置目的地 /// </summary> public void SetIntent(CustomerIntentEnum intent) { SetIntent(intent, null); }