-
-
Save gordeev-dmitry/aa681901c4ff87b327454d711d15fe86 to your computer and use it in GitHub Desktop.
Object pool take object from pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnTakeFromPool(GameObject pooledGameObject) | |
{ | |
pooledGameObject.SetActive(true); | |
// reinitialize object, run animation and any other things | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment