public static void Load() { if (Instance) { MainRoot.FocusPanel(Instance); } else { if (!Prefab) { Debug.LogWarning("找不到Panel的Prefab"); return; } MainRoot.ShowPanel(Prefab); } }
public static void Load() { if (Instance) { MainRoot.FocusPanel(Instance); } else { if (!Prefab) { return; } MainRoot.ShowPanel(Prefab); } if (Instance) { Instance.Initialize(); } }