/// <summary> /// 意图-闲置 /// </summary> public void SetIntentForIdle() { cookPro.SetActive(false); chefIntent = ChefIntentEnum.Idle; //设置灶台为空闲 if (orderForCustomer != null && orderForCustomer.stove != null) { orderForCustomer.stove.SetStoveStatus(BuildStoveCpt.StoveStatusEnum.Idle); } orderForCustomer = null; npcAIWorker.SetIntent(NpcAIWorkerCpt.WorkerIntentEnum.Idle); }
/// <summary> /// 设置意图 /// </summary> /// <param name="chefIntent"></param> /// <param name="orderForCustomer"></param> public void SetIntent(ChefIntentEnum chefIntent, OrderForCustomer orderForCustomer) { this.chefIntent = chefIntent; this.orderForCustomer = orderForCustomer; switch (chefIntent) { case ChefIntentEnum.Idle: SetIntentForIdle(); break; case ChefIntentEnum.GoToCook: SetIntentForGoToCook(orderForCustomer); break; case ChefIntentEnum.Cooking: SetIntentForCooking(orderForCustomer); break; } }
public void SetIntent(ChefIntentEnum chefIntent) { SetIntent(chefIntent, orderForCustomer); }