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