Exemplo n.º 1
0
        //点击了地块、战斗单位
        private void OnBattleUnitAndGridTouched(GridUnit gridTouched, BattleUnit battleUnitTouched)
        {
#if TEST_NAV
            Test_Nav(gridTouched);
            return;
#endif
#if TEST_RANGE
            Test_Range(gridTouched);
            return;
#endif
#if TEST_REMOTE_RANGE
            Test_RemoteRange(gridTouched);
            return;
#endif
            if (battleUnitTouched != null)
            {
                battleUnitTouched.battleBehaviourSystem.Think();
            }
            if (gridTouched != null || battleUnitTouched != null)
            {
                UIViewManager.Instance.ShowView(UIViewName.BattleFieldUnitInfo, gridTouched, battleUnitTouched);
            }
            else
            {
                UIViewManager.Instance.HideView(UIViewName.BattleFieldUnitInfo);
            }

            //通知helper处理点击反馈逻辑
            manualOperationHelper.OnBattleUnitAndGridTouched(gridTouched, battleUnitTouched);
        }
Exemplo n.º 2
0
        //点击了地块、战斗单位
        private void OnBattleUnitAndGridTouched(GridUnit gridTouched, BattleUnit battleUnitTouched)
        {
#if TEST_NAV
            Test_Nav(gridTouched);
            return;
#endif
#if TEST_RANGE
            Test_Range(gridTouched);
            return;
#endif
#if TEST_REMOTE_RANGE
            Test_RemoteRange(gridTouched);
            return;
#endif
            //通知helper处理点击反馈逻辑
            manualOperationHelper.OnBattleUnitAndGridTouched(gridTouched, battleUnitTouched);
        }
Exemplo n.º 3
0
 //点击了地块、战斗单位
 private void OnBattleUnitAndGridTouched(GridUnit gridTouched, BattleUnit battleUnitTouched)
 {
     //通知helper处理点击反馈逻辑
     manualOperationHelper.OnBattleUnitAndGridTouched(gridTouched, battleUnitTouched);
 }