C# Class Supermarket.Product

Exibir arquivo Open project: Clarksj4/Theme-Supermarket-Tycoon-World Class Usage Examples

Public Methods

Method Description
Product ( GameObject model, float price, int quantity ) : System
Split ( int quantity ) : Product

Splits this product category in two with the new product category inheriting the specified quantity from this product.

Method Details

Product() public method

public Product ( GameObject model, float price, int quantity ) : System
model UnityEngine.GameObject
price float
quantity int
return System

Split() public method

Splits this product category in two with the new product category inheriting the specified quantity from this product.
public Split ( int quantity ) : Product
quantity int The quantity of product to be removed from this product and placed into the new /// product
return Product