Getting this error and not sure why, I am trying to start a conversation from a time script and am receiving the error attached.
I am using PixelCrushers.DialogueSystem; and currently have a workaround of enabling an object in the scene, having dialogue triggers set up for starting at the same time as the script enables the object, and disabling the object, adding one minute to the timer.
Code below:
Code: Select all
using PixelCrushers.DialogueSystem;
using UnityEngine;
using UnityEngine.UI;
...
//Event starter that activates when chosen
public void SpecialStarter()
{
if (hour == 7 && day == 1 && minute == 3)
{
DialogueManager.StartConversation("Cutscene/Day1");
TimeTracker.SetActive(true);
minute++;
}
else if (hour == 12 && day == 1 && minute == 7)
{
TimeTracker.SetActive(true);
}
else if (hour == 4 && day == 2 && minute == 3)
{
TimeTracker.SetActive(true);
minute++;
}
else TimeTracker.SetActive(false);
}