Beispiel #1
0
        /// <summary>
        /// Turn tapping input into game functions: selection or action
        /// </summary>
        /// <param name="screenPos">Screen position.</param>
        /// <param name="tapCount">Number of taps.</param>
        private void TapToSelectionAction(Vector3 screenPos, int tapCount)
        {
            SelectableCtrl target = this.ScreenPointToSelectable(screenPos);

            if (tapCount == 1)
            {
                _selMngr.SetSelection(target);
            }
            else
            {
                _selMngr.SetAction(target, this.ScreenPointToGround(screenPos));
            }
        }