// 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;
 }