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;
        }
Beispiel #3
0
 protected virtual void OnDisable()
 {
     DpnPointerManager.OnPointerDestroy(this);
 }
Beispiel #4
0
 protected virtual void OnEnable()
 {
     DpnPointerManager.OnPointerCreated(this);
 }