Beispiel #1
0
    public static void Initialize()
    {
        var foundConsole = FindObjectOfType(typeof(hDebug)) as hDebug;

        if (foundConsole == null)
        {
            var go = GameObject.Find(Hydrogen.Components.DefaultSingletonName) ??
                     new GameObject(Hydrogen.Components.DefaultSingletonName);
            go.AddComponent <hDebug> ();
            _staticInstance = go.GetComponent <hDebug> ();
        }
    }
Beispiel #2
0
 public static void Initialize()
 {
     var foundConsole = FindObjectOfType (typeof(hDebug)) as hDebug;
             if (foundConsole == null) {
                     var go = GameObject.Find (Hydrogen.Components.DefaultSingletonName) ??
                              new GameObject (Hydrogen.Components.DefaultSingletonName);
                     go.AddComponent<hDebug> ();
                     _staticInstance = go.GetComponent<hDebug> ();
             }
 }