void OnBtnLevelClick(int level) { Log.Info(level); if (level == 13) { ProcedureMain procedure = GameEntry.Procedure.CurrentProcedure as ProcedureMain; procedure.JumpToLevel(level); GameEntry.UI.CloseUIForm(this); } else if (level == 14) { ProcedureMain procedure = GameEntry.Procedure.CurrentProcedure as ProcedureMain; procedure.JumpToTileMap(); GameEntry.UI.CloseUIForm(this); } else if (level == 15) { ProcedureMain procedure = GameEntry.Procedure.CurrentProcedure as ProcedureMain; procedure.JumpToCineMachine(); GameEntry.UI.CloseUIForm(this); } }
protected override internal void OnInit(ProcedureOwner procedureOwner) { base.OnInit(procedureOwner); Instance = this; }