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); } }
public void TestRecurse() { recursedTree = generator.Recurse(testTree, testRules, iterations); }