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