Пример #1
0
 private void OnTriggerEnter2D(Collider2D col)
 {
     if (col.gameObject.CompareTag("Soil"))
     {
         string recursedTree = plantGenRef.Recurse(seed.axiom, seed.rulesDict, seed.iterations.GetRandom());
         plantGenRef.DisplayPlant(recursedTree, transform.position.x, seed.branchLength, seed.branchWidth, seed.angle, seed.growthSpeed, seed.GetColour());
         Destroy(gameObject);
     }
 }
Пример #2
0
 public void TestRecurse()
 {
     recursedTree = generator.Recurse(testTree, testRules, iterations);
 }