/// <summary> /// Jsonファイルから兵器1の発射間隔を取得する /// </summary> /// <param name="index"></param> /// <returns></returns> public int LoadBullet1Damage(int index) { m_weaponIndex = index; string inputString = Resources.Load <TextAsset>("Json/WeaponData").ToString(); InputJsonWeaponData inputJsonWeaponData = JsonUtility.FromJson <InputJsonWeaponData>(inputString); m_bul1Damage = inputJsonWeaponData.m_bul1Damage[m_weaponIndex]; return(m_bul1Damage); }
/// <summary> /// Jsonファイルから兵器1の発射間隔を取得する /// </summary> /// <param name="index"></param> /// <returns></returns> public float LoadWeapon1Data(int index) { m_weaponIndex = index; string inputString = Resources.Load <TextAsset>("Json/WeaponData").ToString(); InputJsonWeaponData inputJsonWeaponData = JsonUtility.FromJson <InputJsonWeaponData>(inputString); m_shooting1Time = inputJsonWeaponData.m_weapon1ShootData[m_weaponIndex]; return(m_shooting1Time); }