Restore the stable legacy Unity project
This commit is contained in:
parent
56a156ee87
commit
7006a6b0dd
2070 changed files with 180490 additions and 169303 deletions
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using MessagePack;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
|
@ -36,7 +37,7 @@ public static class UnitySceneExtensions
|
|||
}
|
||||
|
||||
public static void BroadcastAll(string fun, System.Object msg) {
|
||||
var gos = GameObject.FindObjectsByType<GameObject>();
|
||||
GameObject[] gos = (GameObject[])GameObject.FindObjectsOfType(typeof(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