Exemplo n.º 1
0
 void Awake()
 {
     _current = this;
     initialized = true;
 }
Exemplo n.º 2
0
        void OnDisable()
        {
            if (_current == this) {

                _current = null;
            }
        }
Exemplo n.º 3
0
        static void Initialize()
        {
            if (!initialized) {

                if (!Application.isPlaying)
                    return;
                initialized = true;
                var g = new GameObject("Loom");
                _current = g.AddComponent<Loom>();
            }
        }