Свойство | Type | Description | |
---|---|---|---|
ExitIcon | |||
IdleIcon | |||
WanderIcon |
Méthode | Description | |
---|---|---|
AddListener ( IWalletListener listener ) : void | ||
AddToDirectory ( string product, |
Adds the given shelf to the supermarket product directory. The directory shows which shelves stock which products
|
|
Awake ( ) : void | ||
ClosestExit ( |
Gets the closest exit zone to the given position.
|
|
ClosestShelf ( |
Gets the closest shelf to the given pposition that stocks the given product. Returns null if no shelf stocks the given product
|
|
Deposit ( float amount ) : void |
Adds the given amount of money to the supermarkets cash pool
|
|
NextEmptyShelf ( ) : |
||
NotifyDeposit ( float amountDeposited ) : void | ||
NotifyShelfEmpty ( |
Interface method. Called when a shelf runs out of the given product.
|
|
NotifyWithdrawal ( float amountWithdrawn ) : void | ||
OccupiedCheckout ( ) : |
||
RandomCheckout ( ) : |
Selects a random checkout in this supermarket.
|
|
RandomExit ( ) : |
Gets a random exit zone.
|
|
RandomPosition ( ) : |
Gets a random position within the supermarket that is on the supermarket navmesh
|
|
RandomProduct ( ) : |
Gets a random product with a random quantity from the supermarket catalogue
|
|
RemoveListener ( IWalletListener listener ) : void | ||
Withdraw ( float amount ) : void |
Withdraws the given amount of money from the supermarket's cash pool
|
public AddListener ( IWalletListener listener ) : void | ||
listener | IWalletListener | |
Résultat | void |
public AddToDirectory ( string product, |
||
product | string | The product key to add to the directory |
shelf | The shelf that stocks the product | |
Résultat | void |
public ClosestExit ( |
||
position | The position to check against to find the closest exit zone | |
Résultat |
public ClosestShelf ( |
||
position | The position to check against when finding the closest shelf | |
product | string | The product that the shelf must stock in order to be considered for closeness |
Résultat |
public Deposit ( float amount ) : void | ||
amount | float | The amount of money to add to this supermarket's cash pool |
Résultat | void |
public NotifyDeposit ( float amountDeposited ) : void | ||
amountDeposited | float | |
Résultat | void |
public NotifyShelfEmpty ( |
||
shelf | The shelf that has run out of stock of a product | |
product | string | The product that the shelf has run out of the given product |
Résultat | void |
public NotifyWithdrawal ( float amountWithdrawn ) : void | ||
amountWithdrawn | float | |
Résultat | void |
public RemoveListener ( IWalletListener listener ) : void | ||
listener | IWalletListener | |
Résultat | void |
public Withdraw ( float amount ) : void | ||
amount | float | The amount of money to withdraw |
Résultat | void |