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(); } }
// Start is called before the first frame update void Start() { inProgress = true; handler = GetComponentInParent <MissionHandler>(); handler.OpenTextBox(NPCIntro); questHeader = handler.questHeader; questHeader.text = simpText; }