private void Awake() { if (dragInputManager == null) { dragInputManager = this; StopDisplayingDraggedShape(); } else { GameObject.DestroyImmediate(gameObject); } }
private void OnDisable() { dragInputManager = null; }