Exemplo n.º 1
0
 void startGame()
 {
     Sherlock.Instance.SetDialogue(startGameDialogue);
     Respond(startGameDialogue);
     currentKidState = kidState.JAKE;
     Invoke("ResetGame", minigame.GetCurrentDialogueComulativeDuration() + 1);
 }
Exemplo n.º 2
0
    void KidChange()
    {
        currentPlayer++;
        if (currentPlayer == 1) {
            currentKidState = kidState.ANDREW;
            Respond(endCharacter);
            Invoke ("UpdatePlayerTextures", minigame.GetCurrentDialogueDuration());

            StartCoroutine(setSherlockResponse(minigame.GetCurrentDialogueDuration(), switchCharacter));
            Invoke ("ResetGame", switchCharacter.GetCommulativeDuration() + minigame.GetCurrentDialogueDuration());

        } else if (currentPlayer == 2) {
            currentKidState = kidState.PETE;
            Respond(endCharacter);
            Invoke ("UpdatePlayerTextures", minigame.GetCurrentDialogueDuration());

            StartCoroutine(setSherlockResponse(minigame.GetCurrentDialogueDuration(), teachFriend));
            Invoke ("ResetGame", teachFriend.GetCommulativeDuration() + minigame.GetCurrentDialogueDuration());
            Invoke ("enableHandColliders", teachFriend.GetCommulativeDuration() + minigame.GetCurrentDialogueDuration());
        } else {
            currentKidState = kidState.WIN_GAME;
            Respond (thanksForTeaching);
            Invoke("playEndDialogue", minigame.GetCurrentDialogueComulativeDuration());
            ResetGame ();
        }
    }