프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ExitIcon | |||
IdleIcon | |||
WanderIcon |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public AddToDirectory ( string product, |
||
product | string | The product key to add to the directory |
shelf | The shelf that stocks the product | |
리턴 | void |
public ClosestExit ( |
||
position | The position to check against to find the closest exit zone | |
리턴 |
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 |
리턴 |
public Deposit ( float amount ) : void | ||
amount | float | The amount of money to add to this supermarket's cash pool |
리턴 | void |
public NotifyDeposit ( float amountDeposited ) : void | ||
amountDeposited | float | |
리턴 | 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 |
리턴 | void |
public NotifyWithdrawal ( float amountWithdrawn ) : void | ||
amountWithdrawn | float | |
리턴 | void |
public RemoveListener ( IWalletListener listener ) : void | ||
listener | IWalletListener | |
리턴 | void |
public Withdraw ( float amount ) : void | ||
amount | float | The amount of money to withdraw |
리턴 | void |