static int scale(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Vector3))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 3); BETween o = BETween.scale(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 3); UnityEngine.Vector3 arg3 = ToLua.ToVector3(L, 4); BETween o = BETween.scale(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BETween.scale")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void _Hide() { Time.timeScale = 1; BETween.scale(Dialog.gameObject, 0.2f, new Vector3(1, 1, 1), new Vector3(1.3f, 1.3f, 1.3f)).method = BETweenMethod.easeOut; BETween.alpha(Dialog.gameObject, 0.2f, 1.0f, 0.0f).method = BETweenMethod.easeOut; BETween.alpha(gameObject, 0.2f, 0.5f, 0.0f).method = BETweenMethod.easeOut; BETween.enable(gameObject, 0.01f, false).delay = 0.3f; }
public void ShowProcess() { gameObject.transform.localPosition = Vector3.zero; gameObject.SetActive(true); gameObject.GetComponent <Image>().color = new Color32(0, 0, 0, 0); Dialog.transform.localScale = new Vector3(0.7f, 0.7f, 0.7f); Dialog.GetComponent <CanvasGroup>().alpha = 0; BETween.scale(Dialog.gameObject, 0.2f, new Vector3(0.7f, 0.7f, 0.7f), new Vector3(1, 1, 1)).method = BETweenMethod.easeOutBack; BETween.alpha(Dialog.gameObject, 0.2f, 0.0f, 1.0f).method = BETweenMethod.easeOut; BETween.alpha(gameObject, 0.2f, 0.0f, 0.5f).method = BETweenMethod.easeOut; }
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); } }
public MapResItem AddResToolItem(GameObject prefab, int id, int i) { GameObject go = (GameObject)Instantiate(prefab, Vector3.zero, Quaternion.identity); go.transform.SetParent(contents[id].transform); go.transform.localScale = Vector3.one; MapResItem script = go.GetComponent <MapResItem>(); go.GetComponent <CanvasGroup>().alpha = 0; BETween bt1 = BETween.alpha(go, 0.1f, 0.0f, 1.0f); bt1.delay = 0.1f * (float)i + 0.2f; BETween bt2 = BETween.scale(go, 0.2f, Vector3.one, new Vector3(1.1f, 1.1f, 1.1f)); bt2.delay = bt1.delay; bt2.loopStyle = BETweenLoop.pingpong; return(script); }