예제 #1
0
    void Start()
    {
        buffer            = new StringBuffer();
        UConsole.Executor = executor;
        UConsole.Buffer   = buffer;
        Thread main = new Thread(() =>
        {
            try
            {
                Program.Main();
            }
            catch (System.Exception e)
            {
                UConsole.WriteLine("Exception:\n" + e.Message);
            }
        });

        main.Start();
    }
예제 #2
0
 public static void Main()
 {
     UConsole.WriteLine("Hello, world!");
 }
예제 #3
0
 public void Enter()
 {
     String = input.text;
     UConsole.WriteLine(input.text);
     input.text = "";
 }