Skip to content

Commit

Permalink
Project update to 2020.3, simplify using
Browse files Browse the repository at this point in the history
  • Loading branch information
Joserbala committed May 7, 2021
1 parent f3b2c2b commit 2e90294
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 27 deletions.
6 changes: 3 additions & 3 deletions Assets/Fonts/ShareTechMono-Regular SDF.asset
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
m_Name: ShareTechMono-Regular SDF 1
m_Name: ShareTechMono-Regular SDF
m_EditorClassIdentifier:
hashCode: 639859459
hashCode: 911641234
material: {fileID: -5570966773077350204}
materialHashCode: 1141220035
materialHashCode: -1419221006
m_Version: 1.1.0
m_SourceFontFileGUID: 320b1d016ac906f48877ff9f553c1d5c
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: 320b1d016ac906f48877ff9f553c1d5c,
Expand Down
9 changes: 4 additions & 5 deletions Assets/Scripts/File Handling/FileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ public string Read(string path)

public void Write(string path, string text)
{
using (var writer = new StreamWriter(path, false))
{
writer.WriteLine(text);
using var writer = new StreamWriter(path, false);

writer.Close();
}
writer.WriteLine(text);

writer.Close();
}

#endregion
Expand Down
10 changes: 4 additions & 6 deletions Assets/Scripts/File Handling/SerializerManager.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System.IO;
using System.Xml;
using UnityEngine;
using Joserbala.Utils;
using Joserbala.Data;

namespace Joserbala.Serialization
{
public class SerializerManager : Singleton<SerializerManager> // TODO: remove unused methods
public class SerializerManager : Singleton<SerializerManager>
{

#region BINARY
Expand All @@ -18,10 +17,9 @@ public class SerializerManager : Singleton<SerializerManager> // TODO: remove un
/// <param name="content">The content that will be stored in <paramref name="path"/>.</param>
public void WriteBinary(string path, string content)
{
using (BinaryWriter writer = new BinaryWriter(File.Open(path, FileMode.Create)))
{
writer.Write(content);
}
using var writer = new BinaryWriter(File.Open(path, FileMode.Create));

writer.Write(content);
}

#endregion
Expand Down
11 changes: 6 additions & 5 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.collab-proxy": "1.2.16",
"com.unity.ide.rider": "1.1.4",
"com.unity.collab-proxy": "1.3.9",
"com.unity.ide.rider": "2.0.7",
"com.unity.ide.visualstudio": "2.0.7",
"com.unity.ide.vscode": "1.2.3",
"com.unity.test-framework": "1.1.20",
"com.unity.textmeshpro": "2.1.6",
"com.unity.timeline": "1.2.17",
"com.unity.test-framework": "1.1.24",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.4.7",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
Expand Down
38 changes: 32 additions & 6 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {}
},
"com.unity.collab-proxy": {
"version": "1.2.16",
"version": "1.3.9",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand All @@ -21,14 +21,23 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.rider": {
"version": "1.1.4",
"version": "2.0.7",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.1"
},
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.7",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.9"
},
"url": "https://packages.unity.com"
},
"com.unity.ide.vscode": {
"version": "1.2.3",
"depth": 0,
Expand All @@ -37,7 +46,7 @@
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.1.20",
"version": "1.1.24",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -48,7 +57,7 @@
"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "2.1.6",
"version": "3.0.6",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -57,10 +66,15 @@
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.2.17",
"version": "1.4.7",
"depth": 0,
"source": "registry",
"dependencies": {},
"dependencies": {
"com.unity.modules.director": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.ugui": {
Expand Down Expand Up @@ -205,6 +219,18 @@
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.uielementsnative": "1.0.0"
}
},
"com.unity.modules.uielementsnative": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2019.4.18f1
m_EditorVersionWithRevision: 2019.4.18f1 (3310a4d4f880)
m_EditorVersion: 2020.3.7f1
m_EditorVersionWithRevision: 2020.3.7f1 (dd97f2c94397)
8 changes: 8 additions & 0 deletions ProjectSettings/VersionControlSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!890905787 &1
VersionControlSettings:
m_ObjectHideFlags: 0
m_Mode: Visible Meta Files
m_CollabEditorSettings:
inProgressEnabled: 1

0 comments on commit 2e90294

Please sign in to comment.