コード例 #1
0
 private void Awake()
 {
     if (dragInputManager == null)
     {
         dragInputManager = this;
         StopDisplayingDraggedShape();
     }
     else
     {
         GameObject.DestroyImmediate(gameObject);
     }
 }
コード例 #2
0
 private void OnDisable()
 {
     dragInputManager = null;
 }