コード例 #1
0
    public override void OnEnable()
    {
        base.OnEnable();

        _uiTweenPosition = target as UITweenPosition;

        _rectTransform = _uiTweenPosition.GetComponent <RectTransform>();
        tr             = _uiTweenPosition.transform;
    }
コード例 #2
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenPosition obj = (UITweenPosition)ToLua.CheckObject(L, 1, typeof(UITweenPosition));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenPosition obj  = (UITweenPosition)ToLua.CheckObject(L, 1, typeof(UITweenPosition));
         bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Play(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
    static int get_to(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPosition     obj = (UITweenPosition)o;
            UnityEngine.Vector3 ret = obj.to;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index to on a nil value" : e.Message));
        }
    }
コード例 #5
0
    static int set_to(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPosition     obj  = (UITweenPosition)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.to = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index to on a nil value" : e.Message));
        }
    }
コード例 #6
0
    void OnEnable()
    {
        obj = (UITweenPosition)target;

        resetOnStop = serializedObject.FindProperty("resetOnStop");
        duration    = serializedObject.FindProperty("duration");
        curve       = serializedObject.FindProperty("curve");
        behavior    = serializedObject.FindProperty("behavior");
        direction   = serializedObject.FindProperty("direction");

        offsetMinX = serializedObject.FindProperty("offsetMinX");
        offsetMinY = serializedObject.FindProperty("offsetMinY");
        offsetMaxX = serializedObject.FindProperty("offsetMaxX");
        offsetMaxY = serializedObject.FindProperty("offsetMaxY");

        posX = serializedObject.FindProperty("posX");
        posY = serializedObject.FindProperty("posY");

        mode = serializedObject.FindProperty("mode");
    }