override public bool InitScene(BaseScene scene, int resId) { StageSceneInitParam param = new StageSceneInitParam(); param.res_id = resId; return(scene.Init(param)); }
override public bool Init(BaseSceneInitParam param) { StageSceneInitParam stageParam = param as StageSceneInitParam; if (!DataManager.SceneTable.ContainsKey(stageParam.res_id)) { return(false); } mSubRes = DataManager.SceneTable[stageParam.res_id] as Scene_StageSceneTableItem; if (!base.Init(stageParam)) { return(false); } mBalanceComponent = new StageSceneBalanceComponent(this); mShowPickGuide = false; mReliveComponent = new StageSceneReliveComponent(this); return(true); }