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

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

        instance = this;
    }
Пример #4
0
 public virtual void OnStart()
 {
     GvrPointerManager.OnPointerCreated(this);
 }
Пример #5
0
 protected virtual void Start()
 {
     GvrPointerManager.OnPointerCreated(this);
 }
Пример #6
0
 void OnDestroy() {
   if (instance == this) {
     instance = null;
   }
 }