public void SelectCell(CellInfo cell) { int currentSeedValue = 0; switch (GameManager.Instance.CurrentContentMode) { case CellInfo.Content.plant: if (PlantSeeds < 1) { return; } PlantSeeds--; currentSeedValue = PlantSeeds; break; case CellInfo.Content.herbivorus: if (HerbivorusSeeds < 1) { return; } HerbivorusSeeds--; currentSeedValue = HerbivorusSeeds; break; case CellInfo.Content.carnivorus: if (CarnivorusSeeds < 1) { return; } CarnivorusSeeds--; currentSeedValue = CarnivorusSeeds; break; default: break; } cell.SetContentManually(GameManager.Instance.CurrentContentMode, 200f); GameManager.Instance.UpdateSeed(currentSeedValue); }