Exemplo n.º 1
0
    // ========================================================================== //

    /* protected - Override & Unity API         */

    protected override void OnAwake()
    {
        base.OnAwake();
        if (p_randSpawn)
        {
            p_eItemType = (EConsumableType)Random.Range(0, 3.999f);
        }
        DoSpawn_Consumable(false);
    }
Exemplo n.º 2
0
            public void postive_test_of_item(string name, decimal price, ETemperature temperature, EConsumableType consumable)
            {
                IFoodMenu menu = new FoodMenu();
                IItem     item = menu.GetItem(name);

                Assert.IsInstanceOf <Item>(item);
                Assert.IsTrue(item.Description == name);
                Assert.IsTrue(item.Price == price);
                Assert.IsTrue(item.Temperature == temperature);
                Assert.IsTrue(item.ConsumableType == consumable);
            }