public void addExternalMovementSpeed(ExternalMovementSpeedType type, int speed)
 {
     if (!_speeds.ContainsKey(type))
     {
         _speeds.Add(type, speed);
     }
     else
     {
         _speeds[type] = speed;
     }
 }
        public bool tryGetExternalMovementSpeed(ExternalMovementSpeedType type, out int speed)
        {
            speed = 0;

            if (_speeds.ContainsKey(type))
            {
                speed = _speeds[type];
                return true;
            }
            else
            {
                return false;
            }
        }
 public void removeExternalMovementSpeed(ExternalMovementSpeedType type)
 {
     _speeds.Remove(type);
 }