Ejemplo n.º 1
0
 private void Awake()
 {
     if (dragInputManager == null)
     {
         dragInputManager = this;
         StopDisplayingDraggedShape();
     }
     else
     {
         GameObject.DestroyImmediate(gameObject);
     }
 }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     dragInputManager = null;
 }