diff --git a/Client/Assets/Plugins.meta b/Client/Assets/Plugins.meta new file mode 100644 index 0000000..7ed0706 --- /dev/null +++ b/Client/Assets/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c63492604b114b743bfd3101f5aad2ee +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll b/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll new file mode 100644 index 0000000..29fb9b9 Binary files /dev/null and b/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll differ diff --git a/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll.meta b/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll.meta new file mode 100644 index 0000000..894d565 --- /dev/null +++ b/Client/Assets/Plugins/Microsoft.Bcl.AsyncInterfaces.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: cbf29d2dbaa0d5e4cbbfe81e0695699f \ No newline at end of file diff --git a/Client/Assets/Plugins/Serilog.Sinks.File.dll b/Client/Assets/Plugins/Serilog.Sinks.File.dll new file mode 100644 index 0000000..e39bc87 Binary files /dev/null and b/Client/Assets/Plugins/Serilog.Sinks.File.dll differ diff --git a/Client/Assets/Plugins/Serilog.Sinks.File.dll.meta b/Client/Assets/Plugins/Serilog.Sinks.File.dll.meta new file mode 100644 index 0000000..c687d22 --- /dev/null +++ b/Client/Assets/Plugins/Serilog.Sinks.File.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d3ddd12c9ec493d44b869a1a0f96b229 \ No newline at end of file diff --git a/Client/Assets/Plugins/Serilog.dll b/Client/Assets/Plugins/Serilog.dll new file mode 100644 index 0000000..81f5521 Binary files /dev/null and b/Client/Assets/Plugins/Serilog.dll differ diff --git a/Client/Assets/Plugins/Serilog.dll.meta b/Client/Assets/Plugins/Serilog.dll.meta new file mode 100644 index 0000000..d9d405f --- /dev/null +++ b/Client/Assets/Plugins/Serilog.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: be71603d4816e6f46ba3e3e3521807ce \ No newline at end of file diff --git a/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll b/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll new file mode 100644 index 0000000..9f74a4d Binary files /dev/null and b/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll differ diff --git a/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll.meta b/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll.meta new file mode 100644 index 0000000..2eabc76 --- /dev/null +++ b/Client/Assets/Plugins/System.Diagnostics.DiagnosticSource.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 3e86ef7ea165f2b49afd65112a76e62e \ No newline at end of file diff --git a/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll b/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll new file mode 100644 index 0000000..6e91f06 Binary files /dev/null and b/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll differ diff --git a/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll.meta b/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll.meta new file mode 100644 index 0000000..03fea5f --- /dev/null +++ b/Client/Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d3068cec879382a49b76e67bfe61e6a2 \ No newline at end of file diff --git a/Client/Assets/Plugins/System.Threading.Channels.dll b/Client/Assets/Plugins/System.Threading.Channels.dll new file mode 100644 index 0000000..8d240f8 Binary files /dev/null and b/Client/Assets/Plugins/System.Threading.Channels.dll differ diff --git a/Client/Assets/Plugins/System.Threading.Channels.dll.meta b/Client/Assets/Plugins/System.Threading.Channels.dll.meta new file mode 100644 index 0000000..06a79d3 --- /dev/null +++ b/Client/Assets/Plugins/System.Threading.Channels.dll.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 15f29a461121df44dbaa93fd319c908e \ No newline at end of file diff --git a/Client/Assets/Scenes/SampleScene.unity b/Client/Assets/Scenes/SampleScene.unity index 1c63aa8..d0a797c 100644 --- a/Client/Assets/Scenes/SampleScene.unity +++ b/Client/Assets/Scenes/SampleScene.unity @@ -38,12 +38,12 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: m_ObjectHideFlags: 0 - serializedVersion: 12 + serializedVersion: 13 + m_BakeOnSceneLoad: 0 m_GISettings: serializedVersion: 2 m_BounceScale: 1 @@ -250,12 +250,12 @@ MonoBehaviour: m_RequiresColorTexture: 0 m_Version: 2 m_TaaSettings: - quality: 3 - frameInfluence: 0.1 - jitterScale: 1 - mipBias: 0 - varianceClampScale: 0.9 - contrastAdaptiveSharpening: 0 + m_Quality: 3 + m_FrameInfluence: 0.1 + m_JitterScale: 1 + m_MipBias: 0 + m_VarianceClampScale: 0.9 + m_ContrastAdaptiveSharpening: 0 --- !u!1 &410087039 GameObject: m_ObjectHideFlags: 0 @@ -336,6 +336,9 @@ Light: m_ForceVisible: 0 m_ShadowRadius: 0 m_ShadowAngle: 0 + m_LightUnit: 1 + m_LuxAtDistance: 1 + m_EnableSpotReflector: 1 --- !u!4 &410087041 Transform: m_ObjectHideFlags: 0 @@ -374,6 +377,50 @@ MonoBehaviour: m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} m_SoftShadowQuality: 1 +--- !u!1 &436334521 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 436334523} + - component: {fileID: 436334522} + m_Layer: 0 + m_Name: EntryPoint + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &436334522 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 436334521} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b87e0a61112e899429b941b1dcb30018, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &436334523 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 436334521} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &832575517 GameObject: m_ObjectHideFlags: 0 @@ -427,6 +474,7 @@ Transform: SceneRoots: m_ObjectHideFlags: 0 m_Roots: + - {fileID: 436334523} - {fileID: 330585546} - {fileID: 410087041} - {fileID: 832575519} diff --git a/Client/Assets/Scripts.meta b/Client/Assets/Scripts.meta new file mode 100644 index 0000000..a5c0fdb --- /dev/null +++ b/Client/Assets/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7b32d4e00d171e34586a8738a0249b38 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/Logging.meta b/Client/Assets/Scripts/Logging.meta new file mode 100644 index 0000000..4a3233e --- /dev/null +++ b/Client/Assets/Scripts/Logging.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 33ad57cd610a4524f85d6f149cb2e15b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/Logging/UnityLogger.cs b/Client/Assets/Scripts/Logging/UnityLogger.cs new file mode 100644 index 0000000..af25e80 --- /dev/null +++ b/Client/Assets/Scripts/Logging/UnityLogger.cs @@ -0,0 +1,55 @@ +using Serilog; +using UnityEngine; +using SerilogLogger = Serilog.Core.Logger; + +namespace Logging +{ + public static class UnityLogger + { + private static readonly SerilogLogger Logger = new LoggerConfiguration() + .WriteTo.File("Logs/UnityLog.txt") + .CreateLogger(); + + public static void Init() + { + Application.logMessageReceived += OnLogMessageReceived; + } + + private static void OnLogMessageReceived(string logString, string stackTrace, LogType type) + { + switch (type) + { + case LogType.Assert: + { + Logger.Warning("\nContent: {0}", logString); + break; + } + case LogType.Log: + { + Logger.Information("\nContent: {0}", logString); + break; + } + case LogType.Warning: + { + Logger.Warning("\nContent: {0}", logString); + break; + } + case LogType.Error: + { + Logger.Error("\nContent: {0}\nStackTrace:\n{1}", logString, stackTrace[..^1]); + break; + } + case LogType.Exception: + { + Logger.Fatal("\nContent: {0}\nStackTrace:\n{1}", logString, stackTrace[..^1]); + break; + } + default: + { + Logger.Information("\nContent: {0}", logString); + break; + } + } + } + } +} \ No newline at end of file diff --git a/Client/Assets/Scripts/Logging/UnityLogger.cs.meta b/Client/Assets/Scripts/Logging/UnityLogger.cs.meta new file mode 100644 index 0000000..32cb9f3 --- /dev/null +++ b/Client/Assets/Scripts/Logging/UnityLogger.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: e3e33084c3687c348bd4c26c8a42fd0e \ No newline at end of file diff --git a/Client/Assets/Scripts/Program.cs b/Client/Assets/Scripts/Program.cs new file mode 100644 index 0000000..e21a663 --- /dev/null +++ b/Client/Assets/Scripts/Program.cs @@ -0,0 +1,15 @@ +using Logging; +using UnityEngine; + +public class Program : MonoBehaviour +{ + private void Awake() + { + UnityLogger.Init(); + } + + private void Start() + { + Debug.Log("Starting game..."); + } +} \ No newline at end of file diff --git a/Client/Assets/Scripts/Program.cs.meta b/Client/Assets/Scripts/Program.cs.meta new file mode 100644 index 0000000..2444471 --- /dev/null +++ b/Client/Assets/Scripts/Program.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: b87e0a61112e899429b941b1dcb30018 \ No newline at end of file diff --git a/Client/ProjectSettings/SceneTemplateSettings.json b/Client/ProjectSettings/SceneTemplateSettings.json new file mode 100644 index 0000000..ede5887 --- /dev/null +++ b/Client/ProjectSettings/SceneTemplateSettings.json @@ -0,0 +1,121 @@ +{ + "templatePinStates": [], + "dependencyTypeInfos": [ + { + "userAdded": false, + "type": "UnityEngine.AnimationClip", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Animations.AnimatorController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.AnimatorOverrideController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Audio.AudioMixerController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.ComputeShader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Cubemap", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.GameObject", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.LightingDataAsset", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.LightingSettings", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Material", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.MonoScript", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicsMaterial", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicsMaterial2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.VolumeProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.SceneAsset", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Shader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.ShaderVariantCollection", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Timeline.TimelineAsset", + "defaultInstantiationMode": 0 + } + ], + "defaultDependencyTypeInfo": { + "userAdded": false, + "type": "", + "defaultInstantiationMode": 1 + }, + "newSceneOverride": 0 +} \ No newline at end of file