public static Transform GetTransform(BaseUiAsset asset) { foreach (var VARIABLE in ass) { if (VARIABLE.Value == asset) { return(VARIABLE.Key); } } return(null); }
private static void AddAss(Transform transform, BaseUiAsset asset) { Debug.Log("添加引用:" + transform.gameObject.name + " " + asset.name); ass.Add(transform, asset); }