Skip to content

Commit 4b9c1ae

Browse files
author
Bharath Vishal G
committed
Updated commit.
Project synced with latest latest version of Unity.
1 parent 1c75607 commit 4b9c1ae

File tree

1,058 files changed

+572
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,058 files changed

+572
-203
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Unity Singleton
1+
# Unity Singleton
22
A sample project explaining the usage of singleton object to hold global game state.
33

44

Source Project/Unity Singleton/Assembly-CSharp.csproj

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<DebugType>full</DebugType>
2323
<Optimize>false</Optimize>
2424
<OutputPath>Temp\bin\Debug\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_1_6;UNITY_2018_1;UNITY_2018;PLATFORM_ARCH_64;UNITY_64;UNITY_ANALYTICS;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_LOCALIZATION;PLATFORM_STANDALONE_WIN;PLATFORM_STANDALONE;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_AR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;UNITY_TEAM_LICENSE</DefineConstants>
25+
<DefineConstants>DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_2_0;UNITY_2018_2;UNITY_2018;UNITY_ANALYTICS;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_TEXTURE_STREAMING;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;INCLUDE_PUBNUB;ENABLE_VIDEO;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_LOCALIZATION;PLATFORM_ANDROID;UNITY_ANDROID;UNITY_ANDROID_API;ENABLE_SUBSTANCE;ENABLE_EGL;ENABLE_NETWORK;ENABLE_RUNTIME_GI;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_EVENT_QUEUE;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_NATIVE_CRASH_REPORTING;PLATFORM_SUPPORTS_ADS_ID;UNITY_CAN_SHOW_SPLASH_SCREEN;ENABLE_VR;ENABLE_AR;ENABLE_SPATIALTRACKING;ENABLE_UNITYADS_RUNTIME;UNITY_UNITYADS_API;ENABLE_IL2CPP;NET_2_0_SUBSET;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;UNITY_HAS_GOOGLEVR;UNITY_HAS_TANGO;ENABLE_MONO</DefineConstants>
2626
<ErrorReport>prompt</ErrorReport>
2727
<WarningLevel>4</WarningLevel>
2828
<NoWarn>0169</NoWarn>
@@ -56,12 +56,19 @@
5656
<Compile Include="Assets\Scripts\Scene_1_Controller.cs" />
5757
<Compile Include="Assets\Scripts\Scene_2_Controller.cs" />
5858
<Compile Include="Assets\Scripts\Singleton_Controller.cs" />
59+
<None Include="Assets\Readme.txt" />
5960
<Reference Include="UnityEditor.StandardEvents">
6061
<HintPath>C:/Users/Vishal/Desktop/Phase Spur Unity Project/Unity Singleton/Library/ScriptAssemblies/UnityEditor.StandardEvents.dll</HintPath>
6162
</Reference>
6263
<Reference Include="Unity.PackageManagerUI.Editor">
6364
<HintPath>C:/Users/Vishal/Desktop/Phase Spur Unity Project/Unity Singleton/Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll</HintPath>
6465
</Reference>
66+
<Reference Include="Unity.TextMeshPro.Editor">
67+
<HintPath>C:/Users/Vishal/Desktop/Phase Spur Unity Project/Unity Singleton/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
68+
</Reference>
69+
<Reference Include="Unity.TextMeshPro">
70+
<HintPath>C:/Users/Vishal/Desktop/Phase Spur Unity Project/Unity Singleton/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
71+
</Reference>
6572
<Reference Include="UnityEngine.AIModule">
6673
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll</HintPath>
6774
</Reference>
@@ -89,12 +96,6 @@
8996
<Reference Include="UnityEngine.CloudWebServicesModule">
9097
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CloudWebServicesModule.dll</HintPath>
9198
</Reference>
92-
<Reference Include="UnityEngine.ClusterInputModule">
93-
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll</HintPath>
94-
</Reference>
95-
<Reference Include="UnityEngine.ClusterRendererModule">
96-
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll</HintPath>
97-
</Reference>
9899
<Reference Include="UnityEngine.CoreModule">
99100
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll</HintPath>
100101
</Reference>
@@ -107,6 +108,9 @@
107108
<Reference Include="UnityEngine.FacebookModule">
108109
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.FacebookModule.dll</HintPath>
109110
</Reference>
111+
<Reference Include="UnityEngine.FileSystemHttpModule">
112+
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.FileSystemHttpModule.dll</HintPath>
113+
</Reference>
110114
<Reference Include="UnityEngine.GameCenterModule">
111115
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll</HintPath>
112116
</Reference>
@@ -128,12 +132,12 @@
128132
<Reference Include="UnityEngine.JSONSerializeModule">
129133
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll</HintPath>
130134
</Reference>
135+
<Reference Include="UnityEngine.LocalizationModule">
136+
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll</HintPath>
137+
</Reference>
131138
<Reference Include="UnityEngine.ParticleSystemModule">
132139
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll</HintPath>
133140
</Reference>
134-
<Reference Include="UnityEngine.ParticlesLegacyModule">
135-
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticlesLegacyModule.dll</HintPath>
136-
</Reference>
137141
<Reference Include="UnityEngine.PerformanceReportingModule">
138142
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll</HintPath>
139143
</Reference>
@@ -143,6 +147,9 @@
143147
<Reference Include="UnityEngine.Physics2DModule">
144148
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll</HintPath>
145149
</Reference>
150+
<Reference Include="UnityEngine.ProfilerModule">
151+
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll</HintPath>
152+
</Reference>
146153
<Reference Include="UnityEngine.ScreenCaptureModule">
147154
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll</HintPath>
148155
</Reference>
@@ -158,6 +165,9 @@
158165
<Reference Include="UnityEngine.SpriteShapeModule">
159166
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll</HintPath>
160167
</Reference>
168+
<Reference Include="UnityEngine.StreamingModule">
169+
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll</HintPath>
170+
</Reference>
161171
<Reference Include="UnityEngine.StyleSheetsModule">
162172
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StyleSheetsModule.dll</HintPath>
163173
</Reference>
@@ -224,9 +234,6 @@
224234
<Reference Include="UnityEngine.VideoModule">
225235
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll</HintPath>
226236
</Reference>
227-
<Reference Include="UnityEngine.WebModule">
228-
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WebModule.dll</HintPath>
229-
</Reference>
230237
<Reference Include="UnityEngine.WindModule">
231238
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll</HintPath>
232239
</Reference>
@@ -236,20 +243,17 @@
236243
<Reference Include="Unity.Locator">
237244
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/Unity.Locator.dll</HintPath>
238245
</Reference>
239-
<Reference Include="Vuforia.UnityExtensions">
240-
<HintPath>C:/Program Files/Unity/Editor/Data/PlaybackEngines/VuforiaSupport/Managed/Runtime/Vuforia.UnityExtensions.dll</HintPath>
241-
</Reference>
242246
<Reference Include="UnityEngine.UI">
243247
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
244248
</Reference>
245-
<Reference Include="UnityEngine.Networking">
246-
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll</HintPath>
247-
</Reference>
248249
<Reference Include="UnityEngine.Timeline">
249250
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll</HintPath>
250251
</Reference>
251-
<Reference Include="UnityEngine.UIAutomation">
252-
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UIAutomation/UnityEngine.UIAutomation.dll</HintPath>
252+
<Reference Include="UnityEngine.Networking">
253+
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll</HintPath>
254+
</Reference>
255+
<Reference Include="Vuforia.UnityExtensions">
256+
<HintPath>C:/Program Files/Unity/Editor/Data/PlaybackEngines/VuforiaSupport/Managed/Runtime/Vuforia.UnityExtensions.dll</HintPath>
253257
</Reference>
254258
<Reference Include="UnityEngine.GoogleAudioSpatializer">
255259
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll</HintPath>
@@ -263,9 +267,6 @@
263267
<Reference Include="UnityEngine.Analytics">
264268
<HintPath>C:/Users/Vishal/AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/UnityEngine.Analytics.dll</HintPath>
265269
</Reference>
266-
<Reference Include="UnityEngine.Purchasing">
267-
<HintPath>C:/Users/Vishal/AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/UnityEngine.Purchasing.dll</HintPath>
268-
</Reference>
269270
<Reference Include="UnityEngine.StandardEvents">
270271
<HintPath>C:/Users/Vishal/AppData/Local/Unity/cache/packages/packages.unity.com/[email protected]/UnityEngine.StandardEvents.dll</HintPath>
271272
</Reference>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Readme-Singleton Unity
2+
----------------------------
3+
A sample project explaining the usage of singleton object to hold global game state.
4+
5+
6+
Usage :
7+
-------
8+
1. The Singleton_Controller class holds the global game state consistently during scene switches.
9+
- This is explained through the score variable.
10+
2. Modify the code to suit your needs.
11+
12+
13+
© 2018. Developed by Bharath Vishal G (https://github.com/BharathVishal).
14+
15+
16+

Source Project/Unity Singleton/Assets/Readme.txt.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19;0;4;0;0
1+
13;589824;2304;0;0

0 commit comments

Comments
 (0)