// Start is called before the first frame update void Start() { Setup(); // run initial setup, inherited from parent class InitConfigurable(); // initialize configurable values randomSeed = new System.Random(seed.GetHashCode()); foodDispensed = 0; gameState = GameState.FoodExpended; countDoneText = "Feed!"; mcMetric = new MemoryChoiceMetric(); // initialize metric recorder dispenser.Init(seed, uniqueFoods, avgUpdateFreq, updateFreqVariance); // initialize the dispenser }
public void TestInit0() { testObj_dispenser.Init("imaseed", 0, 2.5f, 0f); Assert.AreEqual(0, testObj_dispenser.goodFoods.Length); Assert.AreEqual(null, testObj_dispenser.currentFood); }