public static void NetRegister() { // Register the projectile prefab(s) with the networking system. var gos = Resources.LoadAll <GameObject>("Projectiles"); foreach (var go in gos) { NetworkPrefabs.Add(go); } }
public static void NetRegister() { if (Loaded == null) return; foreach (var pair in Loaded) { NetworkPrefabs.Add(pair.Value.gameObject); } }
public static void NetRegisterAll() { if (loaded == null) { return; } foreach (var pair in loaded) { NetworkPrefabs.Add(pair.Value.gameObject); } }