Exemple #1
0
 public void GetPollinate()
 {
     if (isPollinated)
     {
         return;
     }
     isPollinated = true;
     Instantiate(fruitPrefab, transform.position, Quaternion.identity, transform.parent);
     tree.createFruit();
     Destroy(gameObject);
 }
Exemple #2
0
 public void GetPollinate()
 {
     if (isPollinated)
     {
         return;
     }
     isPollinated = true;
     Instantiate(fruitPrefab, transform.position, Quaternion.identity, transform.parent);
     tree.createFruit(indexOnTree);
     PlantsManager.Instance.addExpForFlowerWeapon(type, transform);
     Destroy(gameObject);
 }