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