public void PostMessage(string input, bool postToLog, float postToScreenDuration)
{
if (postToLog)
{
Debug.Log(input);
}
if (postToScreenDuration > 0f) // will only work in the flight scene, gives an error in other places.
{
outputLines.Add(new debugLine(input, postToScreenDuration));
//nextPostDuration = postToScreenDuration;
}
}