static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.Playables.PlayableDirector gen_ret = new UnityEngine.Playables.PlayableDirector(); 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.Playables.PlayableDirector constructor!")); }
static int _m_Play(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.Play( ); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Playables.PlayableAsset>(L, 2)) { UnityEngine.Playables.PlayableAsset _asset = (UnityEngine.Playables.PlayableAsset)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableAsset)); gen_to_be_invoked.Play(_asset); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Playables.PlayableAsset>(L, 2) && translator.Assignable <UnityEngine.Playables.DirectorWrapMode>(L, 3)) { UnityEngine.Playables.PlayableAsset _asset = (UnityEngine.Playables.PlayableAsset)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableAsset)); UnityEngine.Playables.DirectorWrapMode _mode; translator.Get(L, 3, out _mode); gen_to_be_invoked.Play(_asset, _mode); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector.Play!")); }
static int _m_DeferredEvaluate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.DeferredEvaluate( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ClearGenericBinding(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); { UnityEngine.Object _key = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); gen_to_be_invoked.ClearGenericBinding(_key); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ClearReferenceValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); { UnityEngine.PropertyName _id; translator.Get(L, 2, out _id); gen_to_be_invoked.ClearReferenceValue(_id); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }