示例#1
0
    private IEnumerator ShowSubmitResult(string password)
    {
        bombDialogController.Clear();
        if (password == this.password) // CORRECT PASSWORD!
        {
            bombDialogController.Activate("correct_password");
            source.PlayOneShot(success);
            yield return(new WaitForSeconds(3f));

            bombDialogController.Clear();
            gameOverDialogController.Activate("game_over1");
            yield return(new WaitForSeconds(7f));

            gameOverDialogController.Clear();
            gameOverDialogController.Activate("game_over2");
            yield return(new WaitForSeconds(7f));

            gameOverDialogController.Clear();
            gameOverDialogController.Activate("game_over3");
            yield return(new WaitForSeconds(7f));

            gameOverDialogController.Clear();
            initDisplayController.FadeAlpha(1f);
        }
        else //WRONG PASSWORD!
        {
            bombDialogController.Activate("incorrect_password");
            source.PlayOneShot(failure);
        }
        yield return(new WaitForSeconds(2f));

        bombDialogController.Clear();
        Player.instance.SetState(new Investigating(Player.instance));
    }
    private IEnumerator ShowMessages()
    {
        fader.CrossFadeAlpha(0f, 2f, false);
        yield return(new WaitForSeconds(2f));

        dialogController.Activate("start0");
        yield return(new WaitForSeconds(5f));

        dialogController.Clear();
        dialogController.Activate("start1");
        yield return(new WaitForSeconds(5f));

        dialogController.Clear();
        dialogController.Activate("start2");
        yield return(new WaitForSeconds(5f));

        dialogController.Clear();
        dialogController.Activate("start3");
        yield return(new WaitForSeconds(5f));

        dialogController.Clear();
        dialogController.Activate("start4");
        yield return(new WaitForSeconds(5f));

        dialogController.Clear();
        dialogController.Activate("start5");
        yield return(new WaitForSeconds(8f));

        dialogController.Clear();
        Player.instance.frozen = false;
        yield return(null);
    }
示例#3
0
 public override void Activate()
 {
     dialogController.Activate(dialogKey);
     source.PlayOneShot(clip);
     Player.instance.SetState(new ReadingMessage(Player.instance, this));
 }
示例#4
0
 public override void Activate()
 {
     bombDialogController.Activate("bomb_dialog");
     Player.instance.SetState(new DisarmingBomb(Player.instance, this, passwordSize));
 }