프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Awake | void | ||
Notify | void | ||
OnTriggerEnter | void | ||
Start | void |
메소드 | 설명 | |
---|---|---|
Add ( |
Add the given product to this shelf
|
|
AddListener ( IEmptyShelfListener listener ) : void |
Add the given interface member to this shelf's list of listeners. The member will be notified when this shelf runs out of stock of each of its products.
|
|
ClosestInteractionZone ( |
Get the closest shelf interaction zone to the specified position.
|
|
Contains ( string product ) : bool |
Tests whether this shelf contains a product of the given name
|
|
Get ( string product, int quantity ) : |
Gets the given product from this shelf. The amount returned is equal to the specified quantity or the amount stocked by the shelf; which ever is less. The shelf has an equal amount of product removed from its inventory.
|
|
OnCommand ( |
||
OnDeselect ( ) : void | ||
OnSelect ( ) : void | ||
Price ( string product ) : float |
Gets the listed price for the given product. Method will raise an exception if the shelf does not stock the product.
|
|
Quantity ( string product ) : int |
Gets the quantity of items that this shelf stocks for the given product name.
|
|
RandomInteractionZone ( ) : |
Gets a random one of this shelf's interaction zones
|
메소드 | 설명 | |
---|---|---|
Awake ( ) : void | ||
Notify ( string product ) : void |
Notifies each listener that this shelf is out of stock of the given product
|
|
OnTriggerEnter ( |
||
Start ( ) : void |
public Add ( |
||
product | The product to put on this shelf | |
리턴 | void |
public AddListener ( IEmptyShelfListener listener ) : void | ||
listener | IEmptyShelfListener | The member to notify when this shelf is out of stock of any product. |
리턴 | void |
public ClosestInteractionZone ( |
||
position | A world position to test for proximity to this shelves interaction zones. | |
리턴 |
public Contains ( string product ) : bool | ||
product | string | The name of the product to test if this shelf stocks. |
리턴 | bool |
public Get ( string product, int quantity ) : |
||
product | string | The name of the product to obtain |
quantity | int | The desired amount of product |
리턴 |
public OnCommand ( |
||
clicked | ||
position | ||
리턴 | void |
public Price ( string product ) : float | ||
product | string | The name of the product to get the price of. |
리턴 | float |
public Quantity ( string product ) : int | ||
product | string | The product to find how many this shelf stocks |
리턴 | int |
public RandomInteractionZone ( ) : |
||
리턴 |