AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Road fighter android game10/20/2023 ![]() Method will be called On trigger Enter event of track prefab's first track child. Method will recycle the track AllocatedTrackList to the pool instead of destroying it and will remove the first track from the AllocatedTrack list of GameManager class. Make sure that if you have just started the game and first track prefab loaded, it will not recycle the current track on Car Trigger event but it will spawn the same track again from the pool. Method will call RemoveTrack() Method to recycle The track to the ObjectPool. ![]() Method will spawn new track from the pool randomly, and will add to the AllocatedTrackList list of the GameManager Class. Method will create ObjectPool for all the tracks. Some Important Methods are as under: CreateTracksPool()
0 Comments
Read More
Leave a Reply. |