コード例 #1
0
    public void PotionCheck(Color col)
    {
        if (!potReq)
        {
            handler.Alert("I don't think they came for a potion!");
            return;
        }

        if (col == purple)
        {
            handler.OpenTextBox(potPoisonEnd);
            CompleteMission();
        }
        else if (col == orange)
        {
            handler.OpenTextBox(potAntidoteEnd);
            CompleteMission();
        }
        else if (col == cyan)
        {
            handler.OpenTextBox(potTruthEnd);
            CompleteMission();
        }
        else if (col == magenta)
        {
            handler.OpenTextBox(potCharismaEnd);
            CompleteMission();
        }
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        inProgress = true;

        handler = GetComponentInParent <MissionHandler>();
        handler.OpenTextBox(NPCIntro);

        questHeader      = handler.questHeader;
        questHeader.text = simpText;
    }