protected virtual void Update() { if (!Kernel.IsMainThread()) { Debug.Log("MainThreadID-mismatch:" + System.Threading.Thread.CurrentThread.ManagedThreadId + " != mainThread:" + MAINTHREAD_ID); } FutureProcessor.Instance.ProcessMainThreadActions(); #if !NO_LUA_TESTING if (scriptingService == null) { scriptingService = Container.Resolve <Service.Scripting.IScriptingService>(); } scriptingService.Tick(Time.deltaTime); #endif if (KernelReady && KernelCallUpdate) { Tick(Time.deltaTime); } }
/// <summary> /// The Action to be called when this button is pressed /// </summary> public DevUILUAButton(string name, string action) : base(name, null) { // get the scripting-service _scriptingService = Kernel.Instance.Container.Resolve <Service.Scripting.IScriptingService>(); SetLuaCall(action); }