hii …i am working on endless runner game…my problem is with concept of pooling …i have read different posts about pooling…so what i have done so far is
- i have created a table with near about 16 obstacle
- second thing is i created a varibale to cik a random object from my obstacle pool
the problem start when i try to restore any obstacle to the pool again …
what i want is
-randomly spawn an object randomly select from a pool of 5 object
-if that object get off the screen then again randomly spawn another object.
-second thing is after every 5 seconds i want to add one object to the obstacle pool
so after 5 seconds pool have 6 object ,after seven second pool have 7 object and so on