public void Create(Vector2 _pos, Genes genes, float energyGiven) { //stuff to do when creating a new plant Plants.Add(new Plant(_pos, genes, energyGiven)); }
Plant(Vector2 _pos, Genes genes, float energyGiven) { Pos = _pos; genes = Genes.generateRandom(); enegry = energyGiven; }