Example #1
0
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
  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;
  }
Example #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;
    }
Example #4
0
 public virtual void OnStart()
 {
     GvrPointerManager.OnPointerCreated(this);
 }
Example #5
0
 protected virtual void Start()
 {
     GvrPointerManager.OnPointerCreated(this);
 }
 void OnDestroy() {
   if (instance == this) {
     instance = null;
   }
 }