Sync daemon authority migration
This commit is contained in:
parent
030b4b5d74
commit
39a0dc8737
295 changed files with 25121 additions and 7360 deletions
|
|
@ -36,7 +36,7 @@ public static class UnitySceneExtensions
|
|||
}
|
||||
|
||||
public static void BroadcastAll(string fun, System.Object msg) {
|
||||
GameObject[] gos = (GameObject[])GameObject.FindObjectsOfType(typeof(GameObject));
|
||||
var gos = GameObject.FindObjectsByType<GameObject>();
|
||||
foreach (GameObject go in gos) {
|
||||
if (go && go.transform.parent == null) {
|
||||
go.gameObject.BroadcastMessageExt<MonoBehaviour>(fun, msg, SendMessageOptions.DontRequireReceiver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue