Ejemplo n.º 1
0
    protected override void ToPackage()
    {
        EvidenceManager evidence = EvidenceManager.GetInstance();

        if (evidence.package.GetEvidence(objectName) == null)
        {
            evidence.AddObjectEvidence(objectName);
        }
        else
        {
            DiaLogManager.GetInstance().BoringSpeak(0);
        }
    }
Ejemplo n.º 2
0
    protected override void ToPackage()
    {
        EvidenceManager eviMGR = EvidenceManager.GetInstance();

        eviMGR.AddObjectEvidence(objectName);
    }
Ejemplo n.º 3
0
    /// <summary>
    /// 开启情节
    /// </summary>
    /// <param name="plot"></param>
    public void StartPlot(PlotEvent plot)
    {
        switch ((int)plot)
        {
        case -3:
        {
            VSF();
            break;
        }

        case -1: break;

        case -2:
        {
            tool.SetActive(true);
            VS();
            break;
        }

        case 0:
        {
            Cursor.visible = true;
            tool.SetActive(true);
            GameStart();
            break;
        }

        case 1:
        {
            LateToMeet();
            break;
        }

        case 2:
        {
            EvidenceManager.GetInstance().AddObjectEvidence("白酒");
            break;
        }

        case 3:
        {
            evidenceManager.RemoveObjectEvidence("白酒");
            evidenceManager.AddObjectEvidence("新酒");
            GetWine();
            break;
        }

        case 4:
        {
            tool.SetActive(true);
            player.transform.localScale = new Vector3(0.2f, 0.2f);
            PlayerControl.GetInstance().EnableMove();
            break;
        }

        case 5:
        {
            EvidenceManager.GetInstance().RemoveObjectEvidence("新酒");
            FinishTur();
            break;
        }

        case 6:
        {
            BossIntro();
            break;
        }

        case 7:
        {
            Cursor.visible = false;
            PlayerControl.GetInstance().Pause();
            StartSpeaking("进入书架");
            break;
        }

        case 8:
        {
            EnterScene();
            break;
        }

        case 9:
        {
            ExitBookShell();
            break;
        }

        case 10:
        {
            StartPlot(PlotEvent.GAME_START);
            EndShellPuzzel();
            break;
        }

        case 11:
        {
            StartPlot(PlotEvent.GAME_START);
            FailedShellPuzzel();
            break;
        }
        }
    }