PersistentTrails.DebugMessages.PostMessage C# (CSharp) Method

PostMessage() public method

public PostMessage ( string input, bool postToLog, float postToScreenDuration ) : void
input string
postToLog bool
postToScreenDuration float
return void
        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;
            }
        }