public static CommonFadeInAnimation Get(GameObject go) { CommonFadeInAnimation fade = go.GetComponent <CommonFadeInAnimation>(); if (fade == null) { fade = go.AddComponent <CommonFadeInAnimation>(); } return(fade); }
static int StartAction(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Logic.UI.CommonAnimations.CommonFadeInAnimation obj = (Logic.UI.CommonAnimations.CommonFadeInAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonFadeInAnimation)); obj.StartAction(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnUpdateFloat(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Logic.UI.CommonAnimations.CommonFadeInAnimation obj = (Logic.UI.CommonAnimations.CommonFadeInAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonFadeInAnimation)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.OnUpdateFloat(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Get(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.GameObject)); Logic.UI.CommonAnimations.CommonFadeInAnimation o = Logic.UI.CommonAnimations.CommonFadeInAnimation.Get(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.CommonAnimations.CommonFadeInAnimation obj = (Logic.UI.CommonAnimations.CommonFadeInAnimation)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.delay = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delay on a nil value" : e.Message)); } }
static int get_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.CommonAnimations.CommonFadeInAnimation obj = (Logic.UI.CommonAnimations.CommonFadeInAnimation)o; float ret = obj.delay; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delay on a nil value" : e.Message)); } }