Esempio n. 1
0
        public void SwitchActionMod(SwitchModeUnits.SwitchMode switchAction)
        {
            _switchAction = switchAction;
            switch (_switchAction)
            {
            case SwitchModeUnits.SwitchMode.move:
                _tileSpecialZone.CreateZone(transform.position, _lengthStep);
                break;

            case SwitchModeUnits.SwitchMode.attack:
                _tileSpecialZone.CreateZone(transform.position, _zoneAtack);
                break;

            case SwitchModeUnits.SwitchMode.skill1:
                _skills2.CreateZoneAction(transform.position);
                break;

            case SwitchModeUnits.SwitchMode.skill2:
                _skills2.CreateZoneAction(transform.position);
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 public void SwitchAction(SwitchModeUnits.SwitchMode switchMode)
 {
     _switchMode = switchMode;
     _unit.SwitchActionMod(_switchMode);
 }
Esempio n. 3
0
 public InputController(Camera camera)
 {
     _chekAction = false;
     _switchMode = SwitchModeUnits.SwitchMode.move;
     _mainCamera = camera;
 }