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