Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change walk speed of all citizens.
for (uint i = 0; i < PrefabCollection<CitizenInfo>.LoadedCount(); i++) {
var prefab = PrefabCollection<CitizenInfo>.GetLoaded(i);
if (prefab == null) continue; prefab.m_walkSpeed = 0.5f; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment