|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class ExtendButtonScaleWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(ExtendButtonScale), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("SetTarget", SetTarget);
- L.RegFunction("SetOriginalSacle", SetOriginalSacle);
- L.RegFunction("SetPressScale", SetPressScale);
- L.RegFunction("SetNormalScale", SetNormalScale);
- L.RegFunction("OnPointerDown", OnPointerDown);
- L.RegFunction("OnPointerUp", OnPointerUp);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("target", get_target, set_target);
- L.RegVar("pressScale", get_pressScale, set_pressScale);
- L.RegVar("normalScale", get_normalScale, set_normalScale);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetTarget(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
- obj.SetTarget(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetOriginalSacle(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.SetOriginalSacle(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetPressScale(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.SetPressScale(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetNormalScale(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.SetNormalScale(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnPointerDown(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnPointerDown(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnPointerUp(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnPointerUp(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_target(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Transform ret = obj.target;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_pressScale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Vector3 ret = obj.pressScale;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pressScale on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_normalScale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Vector3 ret = obj.normalScale;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalScale on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_target(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
- obj.target = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_pressScale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.pressScale = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pressScale on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_normalScale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ExtendButtonScale obj = (ExtendButtonScale)o;
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.normalScale = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalScale on a nil value" : e.Message);
- }
- }
- }
-
|