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

            if (move == null)
            {
                move = go.AddComponent <CommonMoveByAnimation>();
            }
            return(move);
        }
 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.CommonMoveByAnimation o = Logic.UI.CommonAnimations.CommonMoveByAnimation.Get(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_time(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonMoveByAnimation obj = (Logic.UI.CommonAnimations.CommonMoveByAnimation)o;
            float ret = obj.time;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index time on a nil value" : e.Message));
        }
    }
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.UI.CommonAnimations.CommonMoveByAnimation obj = (Logic.UI.CommonAnimations.CommonMoveByAnimation)ToLua.CheckObject(L, 1, typeof(Logic.UI.CommonAnimations.CommonMoveByAnimation));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 4);
         obj.Init(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_moveBy(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonMoveByAnimation obj = (Logic.UI.CommonAnimations.CommonMoveByAnimation)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.moveBy = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moveBy on a nil value" : e.Message));
        }
    }
    static int set_delay(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.UI.CommonAnimations.CommonMoveByAnimation obj = (Logic.UI.CommonAnimations.CommonMoveByAnimation)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));
        }
    }