- Unity 2018 Artificial Intelligence Cookbook(Second Edition)
- Jorge Palacios
- 56字
- 2021-07-16 18:11:30
There's more...
We could also take another approach: implementing public properties in the script or declaring member variables as public, and instead of calling the Set function, having the script disabled by default in the prefab and enabling it after all the properties have been set. That way, we could easily apply the object pool pattern.