private void UpdateMesh() { foreach (Transform child in obj.transform) { DestroyImmediate(child.gameObject); } obj = settings.Convert(genEdit.GetCurrentPath(), values, AnyWalker.GET_GAMEMODE(genEdit.save.mode)); Editor temp = Editor.CreateEditor(obj); DestroyImmediate(editor); editor = temp; }
/// <summary> /// /// </summary> /// <typeparam name="InputRequest">当前参数的类型</typeparam> /// <typeparam name="OutPutResult">返回的类型</typeparam> /// <param name="input"></param> /// <param name="step">接口信息</param> /// <returns></returns> public static OutPutResult ConvertType <InputRequest, OutPutResult>(this InputRequest input, IConvertType <InputRequest, OutPutResult> step) { return(step.Convert(input)); }