static int color(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Color))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); BETween o = BETween.color(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Color), typeof(UnityEngine.Color))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); UnityEngine.Color arg3 = ToLua.ToColor(L, 4); BETween o = BETween.color(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BETween.color")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public virtual void OnPointerUp(PointerEventData eventData) { if (colorTweenObj) { btColor = BETween.color(colorTweenObj, duration, fromColor); } for (int i = 0; i < showObjs.Count; i++) { showObjs[i].SetActive(false); } for (int i = 0; i < hideObjs.Count; i++) { hideObjs[i].SetActive(true); } if (scaleTweenObj) { btScale = BETween.scale(scaleTweenObj, duration, new Vector3(preScale.x * toScale, preScale.y * toScale, preScale.z), preScale); } }