From 3dc784f6de7c1a02e452611cde76b114f34fb3bf Mon Sep 17 00:00:00 2001 From: playmaker1210 Date: Tue, 29 Nov 2022 16:55:32 +0100 Subject: [PATCH] file write test --- Assets/Scripts/Network/WriteFile.cs | 12 ++++++++ Assets/Scripts/Network/WriteFile.cs.meta | 11 +++++++ UserSettings/Layouts/default-2021.dwlt | 38 ++++++++++++------------ 3 files changed, 42 insertions(+), 19 deletions(-) create mode 100644 Assets/Scripts/Network/WriteFile.cs create mode 100644 Assets/Scripts/Network/WriteFile.cs.meta diff --git a/Assets/Scripts/Network/WriteFile.cs b/Assets/Scripts/Network/WriteFile.cs new file mode 100644 index 0000000..0c342c7 --- /dev/null +++ b/Assets/Scripts/Network/WriteFile.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System.IO; + +public class WriteFile : MonoBehaviour +{ + StreamWriter writer = new StreamWriter(@"..\..\..\..\..\backend\adat.txt", false); + string data = "thewarrior2"; + writer.Write(data); + writer.Close(); +} diff --git a/Assets/Scripts/Network/WriteFile.cs.meta b/Assets/Scripts/Network/WriteFile.cs.meta new file mode 100644 index 0000000..91fad1b --- /dev/null +++ b/Assets/Scripts/Network/WriteFile.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4102586368925fe449e8d028a1fee6c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UserSettings/Layouts/default-2021.dwlt b/UserSettings/Layouts/default-2021.dwlt index bcc1145..8dd593a 100644 --- a/UserSettings/Layouts/default-2021.dwlt +++ b/UserSettings/Layouts/default-2021.dwlt @@ -19,7 +19,7 @@ MonoBehaviour: width: 1366 height: 685 m_ShowMode: 4 - m_Title: Hierarchy + m_Title: Project m_RootView: {fileID: 8} m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} @@ -74,7 +74,7 @@ MonoBehaviour: m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 93 + controlID: 17 --- !u!114 &4 MonoBehaviour: m_ObjectHideFlags: 52 @@ -99,7 +99,7 @@ MonoBehaviour: m_MinSize: {x: 300, y: 200} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 128 + controlID: 15 --- !u!114 &5 MonoBehaviour: m_ObjectHideFlags: 52 @@ -119,8 +119,8 @@ MonoBehaviour: y: 0 width: 336 height: 635 - m_MinSize: {x: 276, y: 71} - m_MaxSize: {x: 4001, y: 4021} + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} m_ActualView: {fileID: 15} m_Panes: - {fileID: 15} @@ -273,7 +273,7 @@ MonoBehaviour: m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 129 + controlID: 16 --- !u!114 &12 MonoBehaviour: m_ObjectHideFlags: 52 @@ -298,7 +298,7 @@ MonoBehaviour: m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 130 + controlID: 67 --- !u!114 &13 MonoBehaviour: m_ObjectHideFlags: 52 @@ -318,8 +318,8 @@ MonoBehaviour: y: 0 width: 848 height: 376 - m_MinSize: {x: 202, y: 221} - m_MaxSize: {x: 4002, y: 4021} + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} m_ActualView: {fileID: 17} m_Panes: - {fileID: 17} @@ -367,22 +367,22 @@ MonoBehaviour: m_SkipHidden: 0 m_SearchArea: 1 m_Folders: - - Assets/Scenes + - Assets/Scripts/Network m_Globs: [] m_OriginalText: m_ViewMode: 1 m_StartGridSize: 64 m_LastFolders: - - Assets/Scenes + - Assets/Scripts/Network m_LastFoldersGridSize: -1 m_LastProjectPath: C:\dev\ColorBall m_LockTracker: m_IsLocked: 0 m_FolderTreeState: scrollPos: {x: 0, y: 0} - m_SelectedIDs: a65a0000 - m_LastClickedID: 23206 - m_ExpandedIDs: 000000009a5a0000a85a000000ca9a3bffffff7f + m_SelectedIDs: 065c0000 + m_LastClickedID: 23558 + m_ExpandedIDs: 00000000ca5a0000d65a000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -410,7 +410,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 000000009a5a0000 + m_ExpandedIDs: 00000000ca5a0000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -538,9 +538,9 @@ MonoBehaviour: m_SceneHierarchy: m_TreeViewState: scrollPos: {x: 0, y: 0} - m_SelectedIDs: + m_SelectedIDs: 0c5c0000 m_LastClickedID: 0 - m_ExpandedIDs: 9cc0ffff80cbffffb8e4ffff92f8ffff40f9ffff32fbffff + m_ExpandedIDs: 32fbffff m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -840,7 +840,7 @@ MonoBehaviour: m_Rotation: m_Target: {x: 0, y: 0, z: 0, w: 1} speed: 2 - m_Value: {x: -0, y: -0, z: 0, w: -1} + m_Value: {x: 0, y: 0, z: 0, w: 1} m_Size: m_Target: 214.81152 speed: 2 @@ -862,7 +862,7 @@ MonoBehaviour: m_FarClip: 10000 m_DynamicClip: 1 m_OcclusionCulling: 0 - m_LastSceneViewRotation: {x: -0.37425822, y: -0.05503738, z: 0.022257956, w: -0.9254234} + m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} m_LastSceneViewOrtho: 0 m_ReplacementShader: {fileID: 0} m_ReplacementString: