// Singleton private void Awake() { if (instance == null) { instance = this; } else { Debug.LogError("More than one DragAndDropManager in the scene!"); Destroy(this); } }
void Start() { manager = DragAndDropManager.Instance; }