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