public void GetPollinate() { if (isPollinated) { return; } isPollinated = true; Instantiate(fruitPrefab, transform.position, Quaternion.identity, transform.parent); tree.createFruit(); Destroy(gameObject); }
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); }