Esempio n. 1
0
 public void showCharacterMovingIn()
 {
     if (isTutorialMode)
     {
         MazeConfiguration.Instance.Context.GetAudioManager().PlayDialogue(Database.LocalizationDataId.Maze_lettername_Intro,
                                                                           () => {
             MazeConfiguration.Instance.Context.GetAudioManager().PlayDialogue(Database.LocalizationDataId.Maze_lettername_Tuto, () => {
                 MazeConfiguration.Instance.Context.GetAudioManager().PlayVocabularyData(
                     currentLL,
                     soundType: MazeConfiguration.Instance.GetVocabularySoundType()
                     );
             });
             currentCharacter.initialPosition = currentCharacter.transform.position;
             currentCharacter.initialRotation = currentCharacter.transform.rotation;
             //currentCharacter.transform.position = new Vector3(0, 0, 15);
             currentCharacter.gameObject.SetActive(true);
             currentCharacter.Appear();
         }
                                                                           );
         return;
     }
     currentCharacter.initialPosition = currentCharacter.transform.position;
     currentCharacter.initialRotation = currentCharacter.transform.rotation;
     //currentCharacter.transform.position = new Vector3(0, 0, 15);
     currentCharacter.gameObject.SetActive(true);
     currentCharacter.Appear();
 }
Esempio n. 2
0
        public void showCharacterMovingIn()
        {
            if (isTutorialMode)
            {
                PlayTutorial(
                    () =>
                {
                    currentCharacter.initialPosition = currentCharacter.transform.position;
                    currentCharacter.initialRotation = currentCharacter.transform.rotation;
                    currentCharacter.gameObject.SetActive(true);
                    currentCharacter.Appear();

                    MazeConfiguration.Instance.Context.GetAudioManager().PlayVocabularyData(
                        currentLL,
                        soundType: MazeConfiguration.Instance.GetVocabularySoundType());
                });
                return;
            }
            currentCharacter.initialPosition = currentCharacter.transform.position;
            currentCharacter.initialRotation = currentCharacter.transform.rotation;
            currentCharacter.gameObject.SetActive(true);
            currentCharacter.Appear();
        }