/// <summary> /// 设置意图 /// </summary> /// <param name="workerIntent"></param> /// <param name="orderForCustomer"></param> /// <param name="npcAIRascal"></param> public void SetIntent(WorkerIntentEnum workerIntent, OrderForCustomer orderForCustomer, NpcAIRascalCpt npcAIRascal, OrderForHotel orderForHotel) { StopAllCoroutines(); RemoveStatusIconByType(CharacterStatusIconEnum.Pro); this.workerIntent = workerIntent; switch (workerIntent) { case WorkerIntentEnum.Idle: SetIntentForIdle(); break; case WorkerIntentEnum.Daze: SetIntentForDaze(); break; case WorkerIntentEnum.Cook: SetIntentForCook(orderForCustomer); break; case WorkerIntentEnum.WaiterSend: SetIntentForWaiterSend(orderForCustomer); break; case WorkerIntentEnum.WaiterClean: SetIntentForWaiterCleanTable(orderForCustomer); break; case WorkerIntentEnum.WaiterBed: SetIntentForWaiterCleanBed(orderForHotel); break; case WorkerIntentEnum.Accounting: if (orderForCustomer != null) { SetIntentForAccounting(orderForCustomer); } else if (orderForHotel != null) { SetIntentForAccounting(orderForHotel); } break; case WorkerIntentEnum.AccostSolicit: SetIntentForAccostSolicit(); break; case WorkerIntentEnum.AccostGuide: SetIntentForAccostGuide(orderForHotel); break; case WorkerIntentEnum.Beater: SetIntentForBeater(npcAIRascal); break; } NotifyAllObserver((int)WorkerNotifyEnum.StatusChange, (int)workerIntent); }
public void SetIntent(WorkerIntentEnum workerIntent, NpcAIRascalCpt npcAIRascal) { SetIntent(workerIntent, null, npcAIRascal); }
public void SetIntent(WorkerIntentEnum workerIntent, OrderForHotel orderForHotel) { SetIntent(workerIntent, null, null, orderForHotel); }
public void SetIntent(WorkerIntentEnum workerIntent, OrderForCustomer orderForCustomer) { SetIntent(workerIntent, orderForCustomer, null); }
public void SetIntent(WorkerIntentEnum workerIntent) { SetIntent(workerIntent, null, null); }
public void SetIntent(WorkerIntentEnum workerIntent, OrderForCustomer orderForCustomer, NpcAIRascalCpt npcAIRascal) { SetIntent(workerIntent, orderForCustomer, npcAIRascal, null); }