private static void InitEndFrame() { if (m_EndFrame == null) { m_EndFrame = new UnityEngine.WaitForEndOfFrame(); } }
static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.WaitForEndOfFrame(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
int __CreateInstanceUnityEngineWaitForEndOfFrame(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; if (gen_param_count == 1) { UnityEngine.WaitForEndOfFrame gen_ret = new UnityEngine.WaitForEndOfFrame(); translator.Push(L, gen_ret); return(1); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForEndOfFrame constructor!")); }
/** [シングルトン]constructor */ private PerformanceCounter() { //マテリアル。 UnityEngine.Shader t_shader = UnityEngine.Shader.Find(Config.SHADER_NAME_PERFORMANCECOUNTER); if (t_shader != null) { this.material = new UnityEngine.Material(t_shader); } else { Tool.Assert(false); } //フレームデータ。 this.framedata = new FrameData(); //フレーム終了待ち。 this.wait_for_endframe = new UnityEngine.WaitForEndOfFrame(); //delete_request this.delete_request = false; //カメラ。 { //最初。 this.camera_first_gameobject = new UnityEngine.GameObject("camera_first"); UnityEngine.GameObject.DontDestroyOnLoad(this.camera_first_gameobject); UnityEngine.Camera t_camera_first_camera = this.camera_first_gameobject.AddComponent <UnityEngine.Camera>(); Camera_First_MonoBehaviour t_camera_first_monobehaviour = this.camera_first_gameobject.AddComponent <Camera_First_MonoBehaviour>(); t_camera_first_camera.Reset(); t_camera_first_camera.cullingMask = 0; t_camera_first_camera.clearFlags = UnityEngine.CameraClearFlags.Nothing; t_camera_first_camera.depth = Config.CAMERADEPTH_FIRST; //最後。 this.camera_last_gameobject = new UnityEngine.GameObject("camera_last"); UnityEngine.GameObject.DontDestroyOnLoad(this.camera_last_gameobject); UnityEngine.Camera t_camera_last_camera = this.camera_last_gameobject.AddComponent <UnityEngine.Camera>(); this.camera_last_gameobject.AddComponent <Camera_Last_MonoBehaviour>(); t_camera_last_camera.Reset(); t_camera_last_camera.cullingMask = 0; t_camera_last_camera.clearFlags = UnityEngine.CameraClearFlags.Nothing; t_camera_last_camera.depth = Config.CAMERADEPTH_LAST; //StartCoroutine t_camera_first_monobehaviour.StartCoroutine(this.Unity_Start()); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.WaitForEndOfFrame(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForEndOfFrame constructor!")); }
static StackObject *GetAwaiter_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.WaitForEndOfFrame instruction = (UnityEngine.WaitForEndOfFrame) typeof(UnityEngine.WaitForEndOfFrame).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = Core.IEnumeratorAwaitExtensions.GetAwaiter(instruction); object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }