Пример #1
0
        public static CommonFadeInAnimation Get(GameObject go)
        {
            CommonFadeInAnimation fade = go.GetComponent <CommonFadeInAnimation>();

            if (fade == null)
            {
                fade = go.AddComponent <CommonFadeInAnimation>();
            }
            return(fade);
        }
Пример #2
0
 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));
     }
 }
Пример #3
0
 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));
     }
 }
Пример #4
0
 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));
     }
 }
Пример #5
0
    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));
        }
    }
Пример #6
0
    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));
        }
    }