private static GunExtras.GunConfig LoadConfig(string filename)
 {
     if (File.Exists(filename))
     {
         GunExtras.GunConfig hand = JsonConvert.DeserializeObject <GunExtras.GunConfig>(File.ReadAllText(filename));
         return(hand);
     }
     else
     {
         MelonLogger.LogWarning("No gun config found for: " + filename);
         return(null);
     }
 }
        private static void SetFirepoint(GunExtras.GunConfig handConfig, Target.TargetHandType hand)
        {
            Gun desiredGun = KataConfig.I.GetGun(hand);

            if (desiredGun == null)
            {
                MelonLogger.LogError("Can not find gun");
                return;
            }

            if (handConfig != null && handConfig.firepoint != null)
            {
                desiredGun.firepoint.localPosition = new Vector3(handConfig.firepoint.x, handConfig.firepoint.y, handConfig.firepoint.z);
            }
            else
            {
                desiredGun.firepoint = desiredGun.firepointDefaultPosition;
            }
        }