/// <summary> /// 加载Box /// </summary> public static void LoadBox() { foreach (var v in BoxManager.Instance.Values) { SceneBusiness scenes; if (ScenesProxy.TryGetScene(v.SceneID, out scenes)) { BoxBusiness bb; if (scenes.SceneType == SceneType.Ectype || scenes.SceneType == SceneType.SubEctype || scenes.SceneType == SceneType.Instance ) { bb = new BoxBusiness(v); } else { bb = new BoxShare(v); } bb.InitBron(scenes.Walking, ScenePinManager.Instance.GetAllPinRang(v.SceneID)); m_boxs[v.ID] = bb; scenes.HaveBox = true; } } }
public static bool TryGetBox(string boxID, out BoxBusiness box) { return m_boxs.TryGetValue(boxID, out box); }