protected void UpdatePickedBlockView() { if (mPickedBlockView == null) { return; } if (!UnityEngine.Input.anyKey) { mPickedBlockView.OnEndDrag(null); mPickedBlockView = null; return; } mPickedBlockView.OnDrag(null); }
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); }