public Think ( GameObject subject ) : void | ||
subject | GameObject | The object to display in the customer's thought bubble. The object is assumed /// to be sized correctly. |
return | void |
public AddToCart(Customer customer, string desiredProduct, Shelf shelf) : base(customer) { this.desiredProduct = desiredProduct; this.shelf = shelf; interactionZone = shelf.ClosestInteractionZone(customer.Position); Vector3 destination = interactionZone.transform.position; moveControl.SetDestination(destination); // Think about the desired product GameObject product = supermarket.Catalogue[desiredProduct].Model; customer.Think(product); }
public FindShelf(Customer customer, string product) : base(customer) { this.product = product; customer.Think(supermarket.Catalogue[product].Model); RandomPosition(); }
public Idle(Customer customer, float seconds = 5) : base(customer) { // Think about being idle customer.Think(supermarket.IdleIcon); delay = customer.StartCoroutine(Delay(seconds)); }
public Exit(Customer customer) : base(customer) { // Destination is a random exit in the supermarket exitZone = supermarket.RandomExit(); moveControl.SetDestination(exitZone.transform.position); // Think about exit customer.Think(supermarket.ExitIcon); }
public Queue(Customer customer, Checkout checkout) : base(customer) { this.checkout = checkout; interactionZone = checkout.ClosestInteractionZone(customer.transform.position); // Move to closest checkout interaction zone moveControl.SetDestination(interactionZone.transform.position); // Clear thought bubble customer.Think(null); }