public static void PrintDev(string str) { if (S.I.consoleView.GetComponent <ConsoleCtrl>() != null) { ConsoleCtrl conRef = S.I.consoleView.GetComponent <ConsoleCtrl>(); conRef.appendLogLine(str); } }