コード例 #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));
 }
コード例 #2
0
 Plant(Vector2 _pos, Genes genes, float energyGiven)
 {
     Pos    = _pos;
     genes  = Genes.generateRandom();
     enegry = energyGiven;
 }