Пример #1
0
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
Пример #2
0
        void Awake()
        {
            if (instance != null)
            {
                Debug.LogError("More than one I3vrPointerManager instance was found in your scene. "
                               + "Ensure that there is only one I3vrPointerManager.");
                this.enabled = false;
                return;
            }

            instance = this;
        }
Пример #3
0
 public virtual void OnStart()
 {
     I3vrPointerManager.OnPointerCreated(this);
 }