Property | Type | Description | |
---|---|---|---|
Awake | void | ||
NotifyListeners | void | ||
OnEnable | void | ||
Start | void | ||
Update | void |
Method | Description | |
---|---|---|
AddListener ( ICustomerStateListener listener ) : void | ||
Destroy ( ) : void |
Destroys this customer. Preserves the selection object (if attached) by calling its deselect method.
|
|
DisableCollisions ( ) : void | ||
EnableCollisions ( ) : void | ||
FindTask ( ) : void | ||
Initialize ( ) : void |
Fills the customers shopping list and wallet and sets it to Shop state
|
|
Move ( Vector3 position ) : void |
Tells the customer to move to a given position in the supermarket
|
|
OnAwareOf ( |
||
OnCommand ( Collider clicked, Vector3 position ) : void | ||
OnDeselect ( ) : void | ||
OnDrop ( ) : void | ||
OnInteract ( |
||
OnPickUp ( ) : void | ||
OnSelect ( ) : void | ||
Pay ( |
Makes the customer give money to the given checkout. The money is subtracted from the customers wallet
|
|
RemoveListener ( ICustomerStateListener listener ) : void | ||
SetState ( |
Assign customer state to given state then call the state's initialize method
|
|
ShelfLocationKnown ( string product ) : bool | ||
Think ( GameObject subject ) : void |
Displays the given object in the customer's thoguht bubble for a limited time
|
Method | Description | |
---|---|---|
Awake ( ) : void | ||
NotifyListeners ( ) : void | ||
OnEnable ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
public AddListener ( ICustomerStateListener listener ) : void | ||
listener | ICustomerStateListener | |
return | void |
public Move ( Vector3 position ) : void | ||
position | Vector3 | The position to move to |
return | void |
public OnCommand ( Collider clicked, Vector3 position ) : void | ||
clicked | Collider | |
position | Vector3 | |
return | void |
public OnInteract ( |
||
other | ||
return | void |
public Pay ( |
||
checkout | The checkout to pay the money to | |
return | void |
public RemoveListener ( ICustomerStateListener listener ) : void | ||
listener | ICustomerStateListener | |
return | void |
public SetState ( |
||
state | The state to change to. | |
return | void |
public ShelfLocationKnown ( string product ) : bool | ||
product | string | |
return | bool |
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 |