public static void OpenCardSinglePanel() { if (_mInstance == null) { Object obj = PrefabLoader.loadFromPack("LS/pbLSEggCarlPanel", true); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; RED.AddChild(go, DBUIController.mDBUIInstance._TopRoot); _mInstance = go.GetComponent <UISingleCardFx>(); go.layer = 9; } } else { _mInstance.ResetDefault(); _mInstance.Start(); } }