public void RequestStartLesson(LessonAsset lessonAsset) { LessonData lessonData = lessonAsset.GetLessonDataCashed(); if (lessonData == null) { // TODO dialog window return; } m_CurrentLessonAsset = lessonAsset; m_CurrentLessonData = lessonData; EventBus.RaiseEvent <ICurrentLessonDataChangedHandler>(h => h.HandleCurrentLessonDataChanged(lessonData)); ApplicationModeAccess.Instance.GoToLessonMode(); }
public TutorialProgressScreen() { Map <TutorialProgress, ScenarioDbId> map = new Map <TutorialProgress, ScenarioDbId>(); map.Add(TutorialProgress.NOTHING_COMPLETE, ScenarioDbId.TUTORIAL_HOGGER); map.Add(TutorialProgress.HOGGER_COMPLETE, ScenarioDbId.TUTORIAL_MILLHOUSE); map.Add(TutorialProgress.MILLHOUSE_COMPLETE, ScenarioDbId.TUTORIAL_CHO); map.Add(TutorialProgress.CHO_COMPLETE, ScenarioDbId.TUTORIAL_MUKLA); map.Add(TutorialProgress.MUKLA_COMPLETE, ScenarioDbId.TUTORIAL_NESINGWARY); map.Add(TutorialProgress.NESINGWARY_COMPLETE, ScenarioDbId.TUTORIAL_ILLIDAN); this.m_progressToNextMissionIdMap = map; Map <ScenarioDbId, LessonAsset> map2 = new Map <ScenarioDbId, LessonAsset>(); map2.Add(ScenarioDbId.TUTORIAL_HOGGER, null); LessonAsset asset = new LessonAsset { m_asset = "Tutorial_Lesson1" }; map2.Add(ScenarioDbId.TUTORIAL_MILLHOUSE, asset); asset = new LessonAsset { m_asset = "Tutorial_Lesson2", m_phoneAsset = "Tutorial_Lesson2_phone" }; map2.Add(ScenarioDbId.TUTORIAL_CHO, asset); asset = new LessonAsset { m_asset = "Tutorial_Lesson3" }; map2.Add(ScenarioDbId.TUTORIAL_MUKLA, asset); asset = new LessonAsset { m_asset = "Tutorial_Lesson4" }; map2.Add(ScenarioDbId.TUTORIAL_NESINGWARY, asset); asset = new LessonAsset { m_asset = "Tutorial_Lesson5" }; map2.Add(ScenarioDbId.TUTORIAL_ILLIDAN, asset); this.m_missionIdToLessonAssetMap = map2; this.m_sortedMissionRecords = new List <DbfRecord>(); this.START_SCALE = new Vector3(0.5f, 0.5f, 0.5f); PlatformDependentValue <Vector3> value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen) { PC = new Vector3(7f, 1f, 7f), Phone = new Vector3(6.1f, 1f, 6.1f) }; this.FINAL_SCALE = (Vector3)value2; value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen) { PC = new Vector3(92.5f, 14f, 92.5f), Phone = new Vector3(106f, 16f, 106f) }; this.FINAL_SCALE_OVER_BOX = (Vector3)value2; value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen) { PC = new Vector3(-8f, 5f, -5f), Phone = new Vector3(-8f, 5f, -4.58f) }; this.FINAL_POS = value2; value2 = new PlatformDependentValue <Vector3>(PlatformCategory.Screen) { PC = new Vector3(0f, 5f, -0.2f), Phone = new Vector3(0f, 5f, -2.06f) }; this.FINAL_POS_OVER_BOX = value2; }