Пример #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;
            }
        }
Пример #2
0
 public override void CreateZoneAction(Vector3 playerPosition)
 {
     _tileSpecialZone.CreateZone(playerPosition, _attackZone, _noAttackZone);
 }