Im doing a game with plants, like you plant one seed and this seed become a apple, for example. But im having one issue, every seed needs a countdown before become something else, so you wait 10 seconds until that seed turn into a apple. And i cant do it, i already try, coroutines, and functions, and nothing works.
The problem is, that i need one independent countdown, for each seed, if i plant now will take 10 secs, and if plant 5 seconds later will take another 10 seconds, anybody has a solution for that ?
Sorry for my bad english, apparently i can read in english but cant write in english as well.
How are you instantiating the seed object?
Really if you instantiate a GameObject like your seed you can attach a script to it. The easiest way is to have a prefab with the script already attached.
The script has a float called plantTime which equals Time.time which you set in Start().
In Update() check if Time.time is greater than plantTime by 10 and if so change the seed to an apple.
You the real MVP!
Im stuck on this for 3 days, and you solve for me!
Thanks BRO <3