コード例 #1
0
ファイル: BaseToolbox.cs プロジェクト: WeArePawns/Articoding
        protected void UpdatePickedBlockView()
        {
            if (mPickedBlockView == null)
            {
                return;
            }

            if (!UnityEngine.Input.anyKey)
            {
                mPickedBlockView.OnEndDrag(null);
                mPickedBlockView = null;
                return;
            }
            mPickedBlockView.OnDrag(null);
        }
コード例 #2
0
ファイル: BaseToolbox.cs プロジェクト: imagicbell/ublockly
 protected void UpdatePickedBlockView()
 {
     if (mPickedBlockView == null)
     {
         return;
     }
     #if UNITY_EDITOR
     if (!UnityEngine.Input.anyKey)
     #else
     if (UnityEngine.Input.touchCount == 0)
     #endif
     {
         mPickedBlockView.OnEndDrag(null);
         mPickedBlockView = null;
         return;
     }
     mPickedBlockView.OnDrag(null);
 }