public void StartTutorial(MiniGameController.GameType gameType)
    {
        //initialLocation = new Vector3(findCorrectLetters()[0].transform.position.x, findCorrectLetters()[0].transform.position.y, findCorrectLetters()[0].transform.position.z);
//		State = TutorialState.InGame;
        PanelTutorial.SetActive(true);
        //tutorialHandImage.transform.SetParent(GameplayController.Instance.MonsterHoleButton.transform.parent);
        tutorialHandImage.transform.position = GameplayController.Instance.MonsterHoleButton.transform.position;
        tutorialHandImage.gameObject.SetActive(true);


        if (currentTutorial != null)
        {
            Destroy(currentTutorial);
            currentTutorial = null;
        }

        currentTutorial = gameObject.AddComponent <Tutorial> ();
        currentTutorial.tutorialHandImage = tutorialHandImage;


        if (gameType == MiniGameController.GameType.CountTo10)
        {
//			runningTutorial = FeedMinigameLetters (2f);
//			StartCoroutine (runningTutorial);

            currentTutorial.InitCountToTenGame();
        }
        else if (gameType == MiniGameController.GameType.MonsterPetting)
        {
//			runningTutorial = PetMinigameMonster (2f);
//			StartCoroutine (runningTutorial);
//			currentTutorial.InitPettingMonster();
        }
    }
Esempio n. 2
0
    public void StartTutorial(MiniGameController.GameType gameType)
    {
        //PanelTutorial.SetActive (true);
        //tutorialHandImage.transform.position = GameplayController.Instance.MonsterHoleButton.transform.position;
        tutorialHandImage.gameObject.SetActive(true);

        if (currentTutorial != null)
        {
            Destroy(currentTutorial);
            currentTutorial = null;
        }

        currentTutorial = gameObject.AddComponent <Tutorial>();
        currentTutorial.tutorialHandImage = tutorialHandImage;
    }