ggsnail / Unity-Singleton

A sample project explaining the usage of singleton object to hold global game state.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity Singleton

A sample project explaining the usage of singleton object to hold global game state.

Usage :

Import the package Unity-Singleton/Package/Unity Singleton.unitypackage from Unity (or) open the project under Unity-Singleton/Source Project/.

  1. The Singleton_Controller class holds the global game state consistently during scene switches.
    • This is explained through the score variable.
  2. Modify the code to suit your needs.

Year developed :

2018

IDE :

Unity 2020.2.5f1

Preview :

Alt Text

© 2018-2021. Developed by Bharath Vishal G (https://github.com/BharathVishal). Thank you. 😄

About

A sample project explaining the usage of singleton object to hold global game state.

License:Apache License 2.0


Languages

Language:C# 98.7%Language:Objective-C 1.2%Language:HLSL 0.1%Language:ShaderLab 0.0%Language:C 0.0%