void MakeFood() { NoticeM.UseNotice("음식나옴", transform.position); var t = Instantiate(foodTemplate); t.remainFoodAmount = 1; t.type = makeType; outFood = t; t.transform.position = exitSocket.position; }
// Called by GuestGroup public void AddEntryWaitingGuestGroup(GuestGroup guestGroup) { cakeslice.OutlineAnimation.self.SetActive(true); entryWaitingGuestGroup.Enqueue(new EntryWaitingGuestGroup(guestGroup)); NoticeM.UseNotice(ScriptM.guestHere, EntryTable.self.transform.position); // Call Staff to EntryTable StaffM.self.CallStaffForGuidance2Table(new WaitingGuestGroup(guestGroup, RequestType.Table)); }
// Called by Staff public void CleanDish() { if (waitingDishes.Count <= 0) { return; } NoticeM.UseNotice("Clean!", transform.position); var t = dutyPoint.Remove(); cleanedPoint.Add(t.transform); // Take Clean var i = waitingDishes.Count - 1; waitingDishes[i].isClean = true; cleanedDishes.Add(waitingDishes[i]); waitingDishes.RemoveAt(i); }
public bool Use(Person person) { var t1 = person as Guest; var t2 = person as Staff; if (t1 != null) { TakeDish(); return(true); } else if (t2 != null) { // Put dish // If Just one dish was dirty var tDishes = t2.GetHavingDishes(); if (tDishes.Count > 0) { bool isDirty = false; foreach (var item in tDishes) { if (!item.isClean) { isDirty = true; break; } } if (!isDirty) { PutDishes(t2.GiveHavingDishes()); } else { NoticeM.UseNotice("Dirty! Wash First", transform.position); } return(true); } else { // Take Dish TakeDishToPerson(person); } } return(false); }
void StaffUse(Staff staff) { if (entryWaitingGuestGroup.Count <= 0) { return; } Table temTable = TableM.self.GetEmptyTable(entryWaitingGuestGroup.Peek().guestGroup.Count); // do not have table now // Need to wait more if (temTable != null) { staff.Guidance2Table(entryWaitingGuestGroup.Dequeue().guestGroup, temTable); } else { NoticeM.UseNotice("No Table", transform.position); } if (entryWaitingGuestGroup.Count <= 0) { cakeslice.OutlineAnimation.self.SetActive(false); } }
public void Say(string msg) { NoticeM.UseNotice(msg, transform); }
void TakeFood(Person person) { NoticeM.UseNotice("음식가져감", transform.position); person.TakeFood(outFood); outFood = null; }