NPC ordering - Team-Swamp/IceBites GitHub Wiki

Overview

The system that allows client penguins to order food.

Usage

Methods Return Description
+ DeliverOrder(Dish) void Gives the param Dish to the NPC
+ GetOrder Dish[] Starts the Order timer on the NPC and gives a random order to fulfill
+ SendNpcAway void Stops the Order timer on the NPC, tells the Score Manager to increase score by the amount from SetScore and sends the NPC away
- SetScore int Gets the amount of time left, multiplies it by the amount of correct dishes and returns the result
- FillOrder void Decides how many dishes an NPC will order and gives a random dish for each.

Source

You want to see how it works? Look at the following scripts: