1 #region Copyright Notice & License Information
35 [AddComponentMenu (
"Hydrogen/Singletons/Web Pool")]
36 public sealed
class hWebPool : Hydrogen.Core.WebPool
51 static readonly System.Object _syncRoot =
new System.Object ();
55 static volatile hWebPool _staticInstance;
65 if (_staticInstance == null) {
70 if (_staticInstance == null) {
71 var go = GameObject.Find (Hydrogen.Components.DefaultSingletonName) ??
72 new GameObject (Hydrogen.Components.DefaultSingletonName);
75 go.AddComponent<hWebPool> ();
76 _staticInstance = go.GetComponent<hWebPool> ();
80 return _staticInstance;
89 return _staticInstance != null;
95 protected override void Awake ()
102 DontDestroyOnLoad (gameObject);
A drop in implementation of the Hydrogen.Core.WebPool. This simply makes the class an accessible sing...
override void Awake()
Unity's Awake Event
bool Persistent
Should this web pool survive scene switches?
static hWebPool Instance
Gets the web pool instance, creating one if none is found.
static bool Exists()
Does a Web Pool already exist?