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; }
public virtual void OnStart() { GvrPointerManager.OnPointerCreated(this); }
protected virtual void Start() { GvrPointerManager.OnPointerCreated(this); }