private static Plant.Seed ChangeSeed(Plant.Seed s) { Plant.Seed n; do { n = (Plant.Seed)Generator.Random(Generator.Category.SEED); } while (n.GetType() == s.GetType()); return(n); }
public virtual Plant Plant(Plant.Seed seed, int pos) { var plant = plants[pos]; if (plant != null) { plant.Wither(); } plant = seed.Couch(pos); plants.Add(pos, plant); GameScene.Add(plant); return(plant); }