public void OnButtonResTool() { if (SelectedGO) { Transform tf = SelectedGO.transform.FindChild("SelectedReg"); DestroyImmediate(tf.gameObject); SelectedGO = null; } rtDialog.transform.parent.localPosition = Vector3.zero; rtDialog.transform.parent.gameObject.SetActive(true); List <MapEditorType> ListMapData = MapDataProccess.instance.allEditorData.editorData; for (int i = 0; i < contents.Length; ++i) { for (int j = contents[i].transform.childCount - 1; j >= 0; j--) { Destroy(contents[i].transform.GetChild(j).gameObject); } } for (int k = 0; k < ListMapData.Count; k++) { MapEditorType mapData = ListMapData[k]; FillContents(k, mapData); } BETween.anchoredPosition(rtDialog.gameObject, 0.3f, new Vector3(0, -500), new Vector3(0, 0)).method = BETweenMethod.easeOut; rtDialog.anchoredPosition = new Vector3(0, -500); BETween.alpha(rtDialog.gameObject, 0.3f, 0, 1.0f).method = BETweenMethod.easeOut; BETween.alpha(rtDialog.transform.parent.gameObject, 0.3f, 0.0f, 0.3f).method = BETweenMethod.easeOut; }
static int anchoredPosition(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Vector2))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Vector2 arg2 = ToLua.ToVector2(L, 3); BETween o = BETween.anchoredPosition(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GameObject), typeof(float), typeof(UnityEngine.Vector2), typeof(UnityEngine.Vector2))) { UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 1); float arg1 = (float)LuaDLL.lua_tonumber(L, 2); UnityEngine.Vector2 arg2 = ToLua.ToVector2(L, 3); UnityEngine.Vector2 arg3 = ToLua.ToVector2(L, 4); BETween o = BETween.anchoredPosition(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: BETween.anchoredPosition")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void Hide() { BETween.anchoredPosition(rtDialog.gameObject, 0.3f, new Vector3(0, -500)).method = BETweenMethod.easeOut; BETween.alpha(rtDialog.transform.parent.gameObject, 0.3f, 0.3f, 0.0f).method = BETweenMethod.easeOut; BETween.enable(rtDialog.transform.parent.gameObject, 0.01f, false).delay = 0.05f; }