public override void Reset()
		{
			gameObject = null;
			direction = UnityEngine.UI.Slider.Direction.LeftToRight;
			//includeRectLayouts = new FsmBool(){UseVariable=true};
			resetOnExit = null;
		}
		public override void OnEnter()
		{

			GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject);
			if (_go!=null)
			{
				_slider = _go.GetComponent<UnityEngine.UI.Slider>();
			}

			if (resetOnExit.Value)
			{
				_originalValue = _slider.direction;
			}

			DoSetValue();
		}
Пример #3
0
    static int get_direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Slider           obj = (UnityEngine.UI.Slider)o;
            UnityEngine.UI.Slider.Direction ret = obj.direction;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index direction on a nil value" : e.Message));
        }
    }
Пример #4
0
    static int set_direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Slider           obj  = (UnityEngine.UI.Slider)o;
            UnityEngine.UI.Slider.Direction arg0 = (UnityEngine.UI.Slider.Direction)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.Slider.Direction));
            obj.direction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index direction on a nil value" : e.Message));
        }
    }
Пример #5
0
    static int set_direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Slider           obj  = (UnityEngine.UI.Slider)o;
            UnityEngine.UI.Slider.Direction arg0 = (UnityEngine.UI.Slider.Direction)LuaDLL.luaL_checknumber(L, 2);
            obj.direction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index direction on a nil value"));
        }
    }
Пример #6
0
    static int get_direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Slider           obj = (UnityEngine.UI.Slider)o;
            UnityEngine.UI.Slider.Direction ret = obj.direction;
            LuaDLL.lua_pushinteger(L, (int)ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index direction on a nil value"));
        }
    }
Пример #7
0
        static StackObject *set_direction_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Slider.Direction value = (UnityEngine.UI.Slider.Direction) typeof(UnityEngine.UI.Slider.Direction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Slider instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.Slider) typeof(UnityEngine.UI.Slider).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.direction = value;

            return(__ret);
        }
Пример #8
0
        static StackObject *SetDirection_29(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean includeRectLayouts = ptr_of_this_method->Value == 1;
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Slider.Direction direction = (UnityEngine.UI.Slider.Direction) typeof(UnityEngine.UI.Slider.Direction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.UI.Slider instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.Slider) typeof(UnityEngine.UI.Slider).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetDirection(direction, includeRectLayouts);

            return(__ret);
        }