void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
        void Awake()
        {
            if (instance != null)
            {
                Debug.LogError("More than one DpnPointerManager instance was found in your scene. "
                               + "Ensure that there is only one DpnPointerManager.");
                this.enabled = false;
                return;
            }

            instance = this;
        }
Ejemplo n.º 3
0
 protected virtual void OnDisable()
 {
     DpnPointerManager.OnPointerDestroy(this);
 }
Ejemplo n.º 4
0
 protected virtual void OnEnable()
 {
     DpnPointerManager.OnPointerCreated(this);
 }