public TestPlantSeedState(GameObject model, float spawnOddsPerDay, int maxSurvivalDays, TestPlantLeaf leaf, bool firstSeed) { _model = model; _spawnOddsPerDay = spawnOddsPerDay; _survivalDaysLeft = maxSurvivalDays; _leaf = leaf; _firstSeed = firstSeed; }
public void DeregisterLeaf(TestPlantLeaf leaf, bool freePosition) { _removeBuffer.Add(leaf); Plant plant = GetComponent <Plant>(); if (freePosition) { plant.VegetationSys.RemoveOccupationAt(leaf.Position); } if (_testPlantSystem.Count == _removeBuffer.Count) { plant.VegetationSys.RemoveOccupationsBy(plant); Destroy(transform.parent.gameObject); } }
public TestPlantDormantState(TestPlantLeaf leaf) { }
public TestPlantFullyGrownState(TestPlantLeaf leaf) { _leaf = leaf; }
public TestPlantGrowingState(TestPlantLeaf leaf) { _leaf = leaf; }