static int set_onComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)o;
            System.Action arg0      = null;
            LuaTypes      funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.onComplete = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onComplete on a nil value" : e.Message));
        }
    }
    static int setComplete(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonFadeToAnimation));
            System.Action arg0      = null;
            LuaTypes      funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.setComplete(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #3
0
        public static CommonFadeToAnimation Get(GameObject go)
        {
            CommonFadeToAnimation fadeto = go.GetComponent <CommonFadeToAnimation>();

            if (fadeto == null)
            {
                fadeto = go.AddComponent <CommonFadeToAnimation>();
            }
            return(fadeto);
        }
 static int startAction(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonFadeToAnimation));
         obj.startAction();
         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.CommonFadeToAnimation o = Logic.UI.CommonAnimations.CommonFadeToAnimation.Get(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnUpdateFloat(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonFadeToAnimation));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.OnUpdateFloat(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_toAlpha(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.toAlpha = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toAlpha on a nil value" : e.Message));
        }
    }
    static int get_onComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)o;
            System.Action ret = obj.onComplete;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onComplete on a nil value" : e.Message));
        }
    }
    static int get_toAlpha(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonFadeToAnimation obj = (Logic.UI.CommonAnimations.CommonFadeToAnimation)o;
            float ret = obj.toAlpha;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toAlpha on a nil value" : e.Message));
        }
    }