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