static void Run() { App.onupdate += Update; App.onclick += Click; App.AddButton(new Rect(0, 200, 200, 50), "state1", 1); App.AddButton(new Rect(200, 200, 200, 50), "state2", 2); App.AddButton(new Rect(400, 200, 200, 50), "state3", 3); App.AddButton(new Rect(0, 250, 200, 50), "Play", 10); App.AddButton(new Rect(200, 250, 200, 50), "Stop", 11); Debug.Log("ScriptMain Start."); }