private void createTutorialBox ( DialogStepsClass tutorialStep ) { if ( ! tutorialStep.noDialog ) { if ( FLUIControl.currentPopupUI != null ) { FLUIControl.currentBlackOutUI.AddComponent < AlphaDisapearAndDestory > (); Destroy ( FLUIControl.currentBlackOutUI.GetComponent < BoxCollider > ()); FLUIControl.getInstance ().blockClicksForAMomentAfterUIClicked (); FLGlobalVariables.POPUP_UI_SCREEN = false; FLUIControl.currentReservingUIElmentObject = null; Destroy ( FLUIControl.currentPopupUI ); } tutorialUIComboObject = ( GameObject ) Instantiate ( tutorialComboUIPrefabs[tutorialStep.tutorialBoxType], Vector3.zero, tutorialComboUIPrefabs[0].transform.rotation ); CURRENT_MAP_DIALOG_SCREEN = tutorialUIComboObject; tutorialUIComboObject.transform.parent = Camera.main.transform; tutorialUIComboObject.transform.localPosition = new Vector3 ( 0f, tutorialStep.framePosition.y, tutorialStep.framePosition.z ) + Vector3.forward * 3f; tutorialUIComboObject.transform.Find ( "frameText" ).GetComponent < GameTextControl > ().myKey = tutorialStep.frameTextKey; tutorialUIComboObject.transform.Find ( "frameText" ).position += Vector3.back * 0.3f; tutorialUIComboObject.transform.Find ( "frameText" ).localScale *= 0.8f; switch ( tutorialStep.tutorialBoxType ) { case TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01: case TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02: tutorialUIComboObject.transform.Find ( "frameText" ).GetComponent < GameTextControl > ().lineLength = 35; break; case TutorialsManager.TUTORIAL_COMBO_UI_DEMI: case TutorialsManager.TUTORIAL_COMBO_UI_FULL: tutorialUIComboObject.transform.Find ( "frameText" ).GetComponent < GameTextControl > ().lineLength = 40; break; } if ( tutorialStep.customLineLenght != 0 ) { tutorialUIComboObject.transform.Find ( "frameText" ).GetComponent < GameTextControl > ().lineLength = tutorialStep.customLineLenght; } if ( tutorialUIComboObject.transform.Find ( "speaker" ) != null ) { tutorialUIComboObject.transform.Find ( "speaker" ).renderer.material.mainTexture = FLLevelControl.getInstance ().gameElements[tutorialStep.characterID]; if ( tutorialStep.characterID == GameElements.CHAR_CORA_1_IDLE ) { //tutorialUIComboObject.transform.Find ( "speaker" ).transform.localScale *= 1.5f; //tutorialUIComboObject.transform.Find ( "speaker" ).transform.position += Vector3.forward * 0.7f; } } tutorialUIComboObject.transform.Find ( "frame" ).gameObject.AddComponent < DialogFrameTapControl > (); tutorialUIComboObject.transform.Find ( "tapText" ).renderer.enabled = true; tutorialUIComboObject.transform.Find ( "frame" ).collider.enabled = true; TutorialsManager.getInstance ().setAlphaToZero ( tutorialUIComboObject ); } if ( tutorialStep.createLockOnIt != null && tutorialStep.createLockOnIt.transform.Find ( "lock(Clone)" ) == null ) { GameObject lockInstant = ( GameObject ) Instantiate ( lockPrefab, tutorialStep.createLockOnIt.transform.position + Vector3.up * 1f, lockPrefab.transform.rotation ); lockInstant.AddComponent < TapLockControl > (); lockInstant.transform.parent = tutorialStep.createLockOnIt.transform.transform; } if ( tutorialStep.unlockThisNode != null ) { tutorialStep.unlockThisNode.AddComponent < UnlockLevelSequenceManager > ().forceSequence = true; if ( tutorialStep.unlockThisNode.transform.Find ( "lock(Clone)" )) Destroy ( tutorialStep.unlockThisNode.transform.Find ( "lock(Clone)" ).gameObject ); } if ( tutorialStep.turnOnAndHighlightThisObject != null ) { tutorialStep.turnOnAndHighlightThisObject.SetActive ( true ); if ( tutorialStep.turnOnAndHighlightThisObject.GetComponent < SelectedComponenent > () == null ) { tutorialStep.turnOnAndHighlightThisObject.AddComponent < SelectedComponenent > ().setSelectedForUIHighlight ( true, 1f ); } else { tutorialStep.turnOnAndHighlightThisObject.GetComponent < SelectedComponenent > ().setSelectedForUIHighlight ( true, 1f ); } } if ( tutorialStep.turnOffAndUNHighlightThisObject != null ) { tutorialStep.turnOffAndUNHighlightThisObject.SetActive ( false ); tutorialStep.turnOffAndUNHighlightThisObject.GetComponent < SelectedComponenent > ().setSelectedForUIHighlight ( false ); } if ( tutorialStep.setToInactiveThisObject != null ) { tutorialStep.setToInactiveThisObject.SetActive ( false ); } if ( tutorialStep.heighlightNode != null && ! tutorialStep.onlyForSeenDialog ) { if ( tutorialStep.heighlightNode.GetComponent < SelectedComponenent > () == null ) { tutorialStep.heighlightNode.AddComponent < SelectedComponenent > ().setSelectedForUIHighlight ( true, 1f ); } else { tutorialStep.heighlightNode.GetComponent < SelectedComponenent > ().setSelectedForUIHighlight ( true, 1f ); } if ( tutorialStep.heighlightNode.GetComponent < JumpingArrowAbove > () == null ) tutorialStep.heighlightNode.AddComponent < JumpingArrowAbove > ().doNotJump = true; } if ( tutorialStep.unHeighlightNode != null ) { _currentObjectToUnHeighLight = tutorialStep.unHeighlightNode; } if ( tutorialStep.rotateToMap02 ) { //FLMissionRoomManager.getInstance ().allWorldsObject.transform.rotation = Quaternion.Euler ( new Vector3 ( 0f, 198 + 1f * 3f, 0f )); FLMissionRoomManager.getInstance ().setCurrentWorld ( 1 ); } if ( tutorialStep.rotateToMap03 ) { //FLMissionRoomManager.getInstance ().allWorldsObject.transform.rotation = Quaternion.Euler ( new Vector3 ( 0f, 198 + 1f * 3f, 0f )); FLMissionRoomManager.getInstance ().setCurrentWorld ( 2 ); } if ( tutorialStep.waitTillNextStep != 0f ) { StartCoroutine ( "waitTillnextStep", tutorialStep.waitTillNextStep ); } }
private void prepareDialogSteps ( int level, bool forTextOnlyrepeat = false ) { DialogStepsClass currentDialog = null; switch ( level ) { case 1: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_01_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 2: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_02_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 3: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_level_03_dialogue_01_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_03_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_level_03_dialogue_03_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 4: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_level_04_dialogue_01_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_04_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -777: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_lab_visit01_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_lab_visit01_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_lab_visit01_dialogue_03_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 5: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_05_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_05_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -778: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_minelevel_01_dialogue_01_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_minelevel_01_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -779: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_labvisit_02_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 6: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_06_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 7: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_07_08_09_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.noAutomiaticShowDialog = true; _currentDialogs.Add ( currentDialog ); break; case 8: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_07_08_09_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.noAutomiaticShowDialog = true; _currentDialogs.Add ( currentDialog ); break; case 9: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_07_08_09_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.noAutomiaticShowDialog = true; _currentDialogs.Add ( currentDialog ); break; case 10: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_10_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; _currentDialogs.Add ( currentDialog ); break; case 11: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; currentDialog.noDialog = true; _currentDialogs.Add ( currentDialog ); break; case -780: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_01_dialogue_01_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; currentDialog.onlyForSeenDialog = true; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_01_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_01_dialogue_03_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.unlockThisNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_01_dialogue_04_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "0" ).Find ( "levels" ).Find ( "train01" ).gameObject; _currentDialogs.Add ( currentDialog ); break; case 12: _currentDialogs = new List < DialogStepsClass > (); if ( ! forTextOnlyrepeat ) { currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 3.5f; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.rotateToMap02 = true; currentDialog.waitTillNextStep = 1f; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 1f; _currentDialogs.Add ( currentDialog ); } currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_12_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "level12" ).gameObject; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_12_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_12_dialogue_03_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_12_dialogue_04_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 13: if ( SaveDataManager.keyExists ( SaveDataManager.LOCK_ON_LEVEL_DESTROYED_PREFIX + "13" )) { _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_13_dialogue_01_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_13_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_13_dialogue_03_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); } break; case 14: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_14_dialogue_01_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_14_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MADRA_1_IDLE; currentDialog.frameTextKey = "map_level_14_dialogue_03_Madra"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 15: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_15_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_15_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 16: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_16_dialogue_01_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.unHeighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "level16" ).gameObject; currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_16_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.unHeighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "level16" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_16_dialogue_03_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.unHeighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "level16" ).gameObject; _currentDialogs.Add ( currentDialog ); break; case 17: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_17_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_17_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.customLineLenght = 45; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_17_dialogue_03_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 18: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_18_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_18_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -781: _currentDialogs = new List < DialogStepsClass > (); if ( ! forTextOnlyrepeat ) { currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 3.5f; _currentDialogs.Add ( currentDialog ); } currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_BOZ_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_02_dialogue_01_Boz"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.unlockThisNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train02" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_02_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_02_dialogue_03_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 19: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_19_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_19_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 20: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_level_20_dialogue_01_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_20_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_level_20_dialogue_03_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 21: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_21_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_21_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 22: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_BOZ_1_IDLE; currentDialog.frameTextKey = "map_level_22_dialogue_01_Boz"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_22_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -782: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MINER_1_IDLE; currentDialog.frameTextKey = "map_minelevel_02_dialogue_01_Miner"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_minelevel_02_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_BOZ_1_IDLE; currentDialog.frameTextKey = "map_minelevel_02_dialogue_03_Boz"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 23: _currentDialogs = new List < DialogStepsClass > (); if ( ! forTextOnlyrepeat ) { currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 3f; _currentDialogs.Add ( currentDialog ); } currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_MADRA_1_IDLE; currentDialog.frameTextKey = "map_level_23_dialogue_01_Madra"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_23_dialogue_02_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 24: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_24_dialogue_01_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train03" ).gameObject; currentDialog.turnOnAndHighlightThisObject = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "jumpingArrowGap" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_BOZ_1_IDLE; currentDialog.frameTextKey = "map_level_24_dialogue_02_Boz"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.turnOffAndUNHighlightThisObject = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "jumpingArrowGap" ).gameObject; currentDialog.turnOnAndHighlightThisObject = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "powerMotor" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_24_dialogue_03_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.turnOffAndUNHighlightThisObject = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "powerMotor" ).gameObject; _currentDialogs.Add ( currentDialog ); break; case 25: _currentDialogs = new List < DialogStepsClass > (); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_25_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.createLockOnIt = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train03" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_level_25_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case -783: _currentDialogs = new List < DialogStepsClass > (); if ( ! forTextOnlyrepeat ) { currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 3.5f; _currentDialogs.Add ( currentDialog ); } currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_03_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); currentDialog.heighlightNode = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "1" ).Find ( "levels" ).Find ( "train03" ).gameObject; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_JOSE_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_03_dialogue_02_Jose"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_trainlevel_03_dialogue_03_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; case 26: _currentDialogs = new List < DialogStepsClass > (); if ( ! forTextOnlyrepeat ) { currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.rotateToMap03 = true; currentDialog.waitTillNextStep = 1f; _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.noDialog = true; currentDialog.waitTillNextStep = 1f; _currentDialogs.Add ( currentDialog ); } currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_26_dialogue_01_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.turnOnAndHighlightThisObject = lockOnLevel26; currentDialog.setToInactiveThisObject = Camera.main.transform.Find ( "world" ).Find ( "allWorlds" ).Find ( "2" ).Find ( "levels" ).Find ( "_clouds" ).Find ( "could01" ).gameObject; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_26_dialogue_02_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_CORA_1_IDLE; currentDialog.frameTextKey = "map_level_26_dialogue_03_Cora"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_01; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); currentDialog = new DialogStepsClass (); currentDialog.characterID = GameElements.CHAR_FARADAYDO_1_IDLE; currentDialog.frameTextKey = "map_level_26_dialogue_03_Faradaydo"; currentDialog.tutorialBoxType = TutorialsManager.TUTORIAL_COMBO_UI_CHARACTER_02; currentDialog.framePosition = new Vector3 ( 0f, 3.8f, 0.11f ); _currentDialogs.Add ( currentDialog ); break; } }