Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
GameManager script for Unity (C#) Easy and simple
SUBMITTED BY:
KaiMolan
DATE:
Aug. 21, 2015, 9:08 p.m.
FORMAT:
C#
SIZE:
802 Bytes
Raw
Download
Tweet
HITS:
643
Go to comments
Report
/*
* If you like my work, and found it useful
* Please donate
* Bitcoin Address: 1LdyAQHXdFVqzGzah45sGKhsQ8wDE6jyci
* Good luck and enjoy.
*
*/
namespace
Assets.Scripts.Managers
{
public
class
GameManager
{
private
static
GameManager
_instance
;
public
static
GameManager
Instance
{
get
{
if
(
_instance
==
null
)
{
_instance
=
new
GameManager
();
}
return
_instance
;
}
}
//add variables you want to keep track of here
// get and set variables in other classes with GameManager.Instance.
private
GameManager
()
{
}
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus