Преглед на файлове

添加音效。目前是b端使用

slambb преди 11 месеца
родител
ревизия
fcbcdfde70
променени са 22 файла, в които са добавени 511 реда и са изтрити 5 реда
  1. 8 0
      Assets/BowArrow/Resources/Audios/Other.meta
  2. BIN
      Assets/BowArrow/Resources/Audios/Other/GoHareHunt.mp3
  3. 22 0
      Assets/BowArrow/Resources/Audios/Other/GoHareHunt.mp3.meta
  4. BIN
      Assets/BowArrow/Resources/Audios/Other/GoPheasuntHunt.wav
  5. 22 0
      Assets/BowArrow/Resources/Audios/Other/GoPheasuntHunt.wav.meta
  6. BIN
      Assets/BowArrow/Resources/Audios/Other/GoWolfHunt.mp3
  7. 22 0
      Assets/BowArrow/Resources/Audios/Other/GoWolfHunt.mp3.meta
  8. BIN
      Assets/BowArrow/Resources/Audios/Other/Rings.mp3
  9. 22 0
      Assets/BowArrow/Resources/Audios/Other/Rings.mp3.meta
  10. BIN
      Assets/BowArrow/Resources/Audios/Other/letgo.mp3
  11. 22 0
      Assets/BowArrow/Resources/Audios/Other/letgo.mp3.meta
  12. 231 0
      Assets/BowArrow/Resources/Prefabs/Effects/HitTargetNumberPlatformB.prefab
  13. 7 0
      Assets/BowArrow/Resources/Prefabs/Effects/HitTargetNumberPlatformB.prefab.meta
  14. 5 1
      Assets/BowArrow/Scripts/Effect/HitTargetNumber.cs
  15. 8 0
      Assets/BowArrow/Scripts/Expand/UserGameAnalyse.cs
  16. 8 1
      Assets/BowArrow/Scripts/Expand/UserGameAnalyse1.cs
  17. 5 1
      Assets/BowArrow/Scripts/Game/Arrow.cs
  18. 5 1
      Assets/BowArrow/Scripts/GameChallenge/Views/HuntGameSelectLevelView.cs
  19. 2 0
      Assets/BowArrow/Scripts/GameChallenge/Views/HunterGameSettleView.cs
  20. 118 1
      Assets/BowArrow/Scripts/Manager/AudioMgr.cs
  21. 2 0
      Assets/BowArrow/Scripts/View/TimeLimitGameDistanceSelectView.cs
  22. 2 0
      Assets/BowArrow/Scripts/View/TimeLimitGameSettleView.cs

+ 8 - 0
Assets/BowArrow/Resources/Audios/Other.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: a589d20bd469dae4c81f790330fd32c4
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BowArrow/Resources/Audios/Other/GoHareHunt.mp3


+ 22 - 0
Assets/BowArrow/Resources/Audios/Other/GoHareHunt.mp3.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: 1e201ba22c7b5bf468d20a7d06ac7895
+AudioImporter:
+  externalObjects: {}
+  serializedVersion: 6
+  defaultSettings:
+    loadType: 0
+    sampleRateSetting: 0
+    sampleRateOverride: 44100
+    compressionFormat: 1
+    quality: 1
+    conversionMode: 0
+  platformSettingOverrides: {}
+  forceToMono: 0
+  normalize: 1
+  preloadAudioData: 1
+  loadInBackground: 0
+  ambisonic: 0
+  3D: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BowArrow/Resources/Audios/Other/GoPheasuntHunt.wav


+ 22 - 0
Assets/BowArrow/Resources/Audios/Other/GoPheasuntHunt.wav.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: afb0e665df558524783c76f03d575061
+AudioImporter:
+  externalObjects: {}
+  serializedVersion: 6
+  defaultSettings:
+    loadType: 0
+    sampleRateSetting: 0
+    sampleRateOverride: 44100
+    compressionFormat: 1
+    quality: 1
+    conversionMode: 0
+  platformSettingOverrides: {}
+  forceToMono: 0
+  normalize: 1
+  preloadAudioData: 1
+  loadInBackground: 0
+  ambisonic: 0
+  3D: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BowArrow/Resources/Audios/Other/GoWolfHunt.mp3


+ 22 - 0
Assets/BowArrow/Resources/Audios/Other/GoWolfHunt.mp3.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: f56bc8c1f42d6a348be2cb90a3b4fc9a
+AudioImporter:
+  externalObjects: {}
+  serializedVersion: 6
+  defaultSettings:
+    loadType: 0
+    sampleRateSetting: 0
+    sampleRateOverride: 44100
+    compressionFormat: 1
+    quality: 1
+    conversionMode: 0
+  platformSettingOverrides: {}
+  forceToMono: 0
+  normalize: 1
+  preloadAudioData: 1
+  loadInBackground: 0
+  ambisonic: 0
+  3D: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BowArrow/Resources/Audios/Other/Rings.mp3


+ 22 - 0
Assets/BowArrow/Resources/Audios/Other/Rings.mp3.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: c979fccba2cdb1f4e9bf51a1b4b008b7
+AudioImporter:
+  externalObjects: {}
+  serializedVersion: 6
+  defaultSettings:
+    loadType: 0
+    sampleRateSetting: 0
+    sampleRateOverride: 44100
+    compressionFormat: 1
+    quality: 1
+    conversionMode: 0
+  platformSettingOverrides: {}
+  forceToMono: 0
+  normalize: 1
+  preloadAudioData: 1
+  loadInBackground: 0
+  ambisonic: 0
+  3D: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BowArrow/Resources/Audios/Other/letgo.mp3


+ 22 - 0
Assets/BowArrow/Resources/Audios/Other/letgo.mp3.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: 2284145c5bbed02499b3804ae0f529e8
+AudioImporter:
+  externalObjects: {}
+  serializedVersion: 6
+  defaultSettings:
+    loadType: 0
+    sampleRateSetting: 0
+    sampleRateOverride: 44100
+    compressionFormat: 1
+    quality: 1
+    conversionMode: 0
+  platformSettingOverrides: {}
+  forceToMono: 0
+  normalize: 1
+  preloadAudioData: 1
+  loadInBackground: 0
+  ambisonic: 0
+  3D: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 231 - 0
Assets/BowArrow/Resources/Prefabs/Effects/HitTargetNumberPlatformB.prefab

@@ -0,0 +1,231 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &3953484096588243018
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 3953484096588243019}
+  - component: {fileID: 3953484096588243021}
+  - component: {fileID: 4143598657192338911}
+  m_Layer: 5
+  m_Name: Text
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &3953484096588243019
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3953484096588243018}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 2, y: 2, z: 1}
+  m_ConstrainProportionsScale: 0
+  m_Children: []
+  m_Father: {fileID: 3953484096697592400}
+  m_RootOrder: 1
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0.5, y: 0.5}
+  m_AnchorMax: {x: 0.5, y: 0.5}
+  m_AnchoredPosition: {x: 5, y: -7}
+  m_SizeDelta: {x: 600, y: 300}
+  m_Pivot: {x: 0.5, y: 0.35}
+--- !u!222 &3953484096588243021
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3953484096588243018}
+  m_CullTransparentMesh: 1
+--- !u!114 &4143598657192338911
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3953484096588243018}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Material: {fileID: 0}
+  m_Color: {r: 1, g: 1, b: 0, a: 1}
+  m_RaycastTarget: 1
+  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+  m_Maskable: 1
+  m_OnCullStateChanged:
+    m_PersistentCalls:
+      m_Calls: []
+  m_FontData:
+    m_Font: {fileID: 12800000, guid: 508129c2daf9b4644907264c89e70f9b, type: 2}
+    m_FontSize: 0
+    m_FontStyle: 0
+    m_BestFit: 0
+    m_MinSize: 0
+    m_MaxSize: 40
+    m_Alignment: 4
+    m_AlignByGeometry: 0
+    m_RichText: 1
+    m_HorizontalOverflow: 0
+    m_VerticalOverflow: 0
+    m_LineSpacing: 1
+  m_Text: 
+--- !u!1 &3953484096697592415
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 3953484096697592400}
+  - component: {fileID: 6828244992260652330}
+  m_Layer: 5
+  m_Name: HitTargetNumberPlatformB
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &3953484096697592400
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3953484096697592415}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 1.5, y: 1.5, z: 1.5}
+  m_ConstrainProportionsScale: 1
+  m_Children:
+  - {fileID: 1537881960295453758}
+  - {fileID: 3953484096588243019}
+  m_Father: {fileID: 0}
+  m_RootOrder: 0
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0.5, y: 0.5}
+  m_AnchorMax: {x: 0.5, y: 0.5}
+  m_AnchoredPosition: {x: 0, y: 0}
+  m_SizeDelta: {x: 100, y: 100}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &6828244992260652330
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3953484096697592415}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 633cdb1e56b510141927ba75c817aeea, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+--- !u!1 &5547216466910056294
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 1537881960295453758}
+  - component: {fileID: 4346446659102155494}
+  - component: {fileID: 1635824888092130653}
+  - component: {fileID: 5679497542507818410}
+  m_Layer: 5
+  m_Name: Line
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &1537881960295453758
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5547216466910056294}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_ConstrainProportionsScale: 0
+  m_Children: []
+  m_Father: {fileID: 3953484096697592400}
+  m_RootOrder: 0
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0.5, y: 0.5}
+  m_AnchorMax: {x: 0.5, y: 0.5}
+  m_AnchoredPosition: {x: 0, y: 0}
+  m_SizeDelta: {x: 544.5, y: 153.186}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &4346446659102155494
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5547216466910056294}
+  m_CullTransparentMesh: 1
+--- !u!114 &1635824888092130653
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5547216466910056294}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Material: {fileID: 0}
+  m_Color: {r: 0.6257881, g: 1, b: 0.25943398, a: 1}
+  m_RaycastTarget: 1
+  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+  m_Maskable: 1
+  m_OnCullStateChanged:
+    m_PersistentCalls:
+      m_Calls: []
+  m_Sprite: {fileID: 21300000, guid: e3c2a35f17311044695fdd3fc50838bb, type: 3}
+  m_Type: 0
+  m_PreserveAspect: 0
+  m_FillCenter: 1
+  m_FillMethod: 4
+  m_FillAmount: 1
+  m_FillClockwise: 1
+  m_FillOrigin: 0
+  m_UseSpriteMesh: 0
+  m_PixelsPerUnitMultiplier: 1
+--- !u!95 &5679497542507818410
+Animator:
+  serializedVersion: 5
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5547216466910056294}
+  m_Enabled: 1
+  m_Avatar: {fileID: 0}
+  m_Controller: {fileID: 9100000, guid: b2a68c7ff654b7648afdc164385b846d, type: 2}
+  m_CullingMode: 0
+  m_UpdateMode: 0
+  m_ApplyRootMotion: 0
+  m_LinearVelocityBlending: 0
+  m_StabilizeFeet: 0
+  m_WarningMessage: 
+  m_HasTransformHierarchy: 1
+  m_AllowConstantClipSamplingOptimization: 1
+  m_KeepAnimatorStateOnDisable: 0
+  m_WriteDefaultValuesOnDisable: 0

+ 7 - 0
Assets/BowArrow/Resources/Prefabs/Effects/HitTargetNumberPlatformB.prefab.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 563f8621d23a63e4d87c24b808e69ffb
+PrefabImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 5 - 1
Assets/BowArrow/Scripts/Effect/HitTargetNumber.cs

@@ -31,6 +31,10 @@ public class HitTargetNumber : MonoBehaviour
     static List<GameObject> hitTargetNumber = new();
     public static void Create(float number) {
         if (number <= 0) return;
+
+        if (number >= 9) {
+            AudioMgr.ins.PlayRings();
+        }
         //清空对象
         for (int i = hitTargetNumber.Count - 1; i >= 0; i--)
         {
@@ -38,7 +42,7 @@ public class HitTargetNumber : MonoBehaviour
             hitTargetNumber.RemoveAt(i);
         }
         GameObject o = GameObject.Instantiate(
-            Resources.Load<GameObject>("Prefabs/Effects/HitTargetNumber"),
+            Resources.Load<GameObject>(CommonConfig.StandaloneModeOrPlatformB? "Prefabs/Effects/HitTargetNumberPlatformB" : "Prefabs/Effects/HitTargetNumber"),
             Vector3.zero,
             Quaternion.identity,
             GameObject.Find("Canvas").transform

+ 8 - 0
Assets/BowArrow/Scripts/Expand/UserGameAnalyse.cs

@@ -80,6 +80,14 @@ public class UserGameAnalyse : MonoBehaviour
 
     public void showResultView(Action callback)
     {
+        //不端直接返回,不处理弹出框
+        if (CommonConfig.StandaloneModeOrPlatformB)
+        {
+            UploadData(true);
+            onResetOverlayData();
+            callback?.Invoke();
+            return;
+        }
         //上传一次数据
         UploadData(true);
         //显示面板

+ 8 - 1
Assets/BowArrow/Scripts/Expand/UserGameAnalyse1.cs

@@ -121,8 +121,15 @@ public class UserGameAnalyse1 : MonoBehaviour
 
     public void showResultView(Action callback)
     {
+        //不端直接返回,不处理弹出框
+        if (CommonConfig.StandaloneModeOrPlatformB)
+        {
+            UploadData(true);
+            onResetOverlayData();
+            callback?.Invoke();
+            return;
+        }
         UploadData(true);
-
         //Debug.Log("ShowResultView" + targetScene + "(" + gameType + ") allTimeSecond:" + allTimeSecond + ",startTime:"+ startTime + ",duration:" + duration);
         StandaloneAPI.PauseGame();
         GameObject resultObj = ViewManager2.getGameObjectAndShowView(ViewManager2.Path_GameResultView);

+ 5 - 1
Assets/BowArrow/Scripts/Game/Arrow.cs

@@ -432,7 +432,11 @@ public class Arrow : MonoBehaviour
             }
             else
             {
-                AudioMgr.ins.PlayArrowEnter();
+                if (CommonConfig.StandaloneModeOrPlatformB) {
+                    AudioMgr.ins.PlayCheer(false);
+                } else {
+                    AudioMgr.ins.PlayArrowEnter();
+                }
             }
         }
     }

+ 5 - 1
Assets/BowArrow/Scripts/GameChallenge/Views/HuntGameSelectLevelView.cs

@@ -5,6 +5,8 @@ using UnityEngine.UI;
 /* 动物关卡的选难度界面 */
 public class HuntGameSelectLevelView : MonoBehaviour
 {
+    //选择关卡后,播放音效
+    bool bPlayStartAudio = false;
     void Awake() 
     {
         SimulateMouseController.ins?.AddOpenLocker(this);
@@ -28,7 +30,9 @@ public class HuntGameSelectLevelView : MonoBehaviour
                      gameMode.SetLevel(levelRecord);
                      gameMode.AddHuntGameView();
                      Destroy(this.gameObject);
-                });
+                     //增加b端入场音效
+                     AudioMgr.ins.PlayStartAudioByGameType();
+                 });
             // }
             levelTF.Find("Icon0").gameObject.SetActive(isLock);
             levelTF.Find("Icon1").gameObject.SetActive(myPassLevel >= levelRecord);

+ 2 - 0
Assets/BowArrow/Scripts/GameChallenge/Views/HunterGameSettleView.cs

@@ -85,6 +85,8 @@ public class HunterGameSettleView : MonoBehaviour
                 }
             }
             SceneManager.LoadScene("GameChallenge", LoadSceneMode.Single);
+            //这里设置需要播放开始音效
+            AudioMgr.bNeedPlayStartAudio = true;
         }
     }
 

+ 118 - 1
Assets/BowArrow/Scripts/Manager/AudioMgr.cs

@@ -1,11 +1,33 @@
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
+using UnityEngine.SceneManagement;
 /* 音频管理者 */
 public class AudioMgr : MonoBehaviour
 {
     private AudioSource audioSource;
     public static AudioMgr ins;
+    //是否需要开始播放音效
+    static bool needPlayStartAudio = false;
+    public static bool bNeedPlayStartAudio
+    {
+        get => needPlayStartAudio;
+        set
+        {
+            if (CommonConfig.StandaloneModeOrPlatformB)
+            {
+                // 满足条件时才允许设置为 true
+                needPlayStartAudio = value;
+            }
+            else
+            {
+                // 不满足条件时,保持为 false
+                needPlayStartAudio = false;
+                Debug.LogWarning("B端使用此bNeedPlayStartAudio属性");
+            }
+        }
+    }
+
 
     public static void Init() 
     {
@@ -18,8 +40,19 @@ public class AudioMgr : MonoBehaviour
 
     void Awake() {
         this.audioSource = this.gameObject.AddComponent<AudioSource>();
+        if (CommonConfig.StandaloneModeOrPlatformB) 
+        {
+            SceneManager.sceneLoaded += OnSceneLoaded;
+        }
+    }
+    void OnDestroy()
+    {
+        if (CommonConfig.StandaloneModeOrPlatformB)
+        {
+            // 确保在销毁时移除事件监听
+            SceneManager.sceneLoaded -= OnSceneLoaded;
+        }
     }
-
     public void Play(string path, AudioSource audioSource) {
         AudioClip audioClip = Resources.Load<AudioClip>(path);
         if (audioSource == null) {
@@ -91,4 +124,88 @@ public class AudioMgr : MonoBehaviour
         this.audioSource.volume = 1;
         this.Play("Audios/be_loaded", null);
     }
+
+    /// <summary>
+    /// 进入野兔
+    /// </summary>
+    public void PlayGoHareHunt()
+    {
+        this.audioSource.volume = 1;
+        this.Play("Audios/Other/GoHareHunt", null);
+    }
+    /// <summary>
+    /// 进入野鸡
+    /// </summary>
+    public void PlayGoPheasuntHunt()
+    {
+        if (!CommonConfig.StandaloneModeOrPlatformB) return;
+
+        this.audioSource.volume = 1;
+        this.Play("Audios/Other/GoPheasuntHunt", null);
+    }
+    /// <summary>
+    /// 进入猎狼
+    /// </summary>
+    public void PlayGoWolfHunt()
+    {
+        if (!CommonConfig.StandaloneModeOrPlatformB) return;
+        this.audioSource.volume = 1;
+        this.Play("Audios/Other/GoWolfHunt", null);
+    }
+    /// <summary>
+    /// 进入射箭场景
+    /// </summary>
+    public void PlayLetgo()
+    {
+        if (!CommonConfig.StandaloneModeOrPlatformB) return;
+        this.audioSource.volume = 1;
+        this.Play("Audios/Other/letgo", null);
+    }
+
+    /// <summary>
+    /// 射中9-10 环欢呼声
+    /// </summary>
+    public void PlayRings()
+    {
+        if (!CommonConfig.StandaloneModeOrPlatformB) return;
+        this.audioSource.volume = 1;
+        this.Play("Audios/Other/Rings", null);
+    }
+
+
+    // 回调函数,当场景加载完成时调用
+    // 一般情况下重新挑战开始时候调用
+    private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
+    {
+        if (!needPlayStartAudio) return;
+        needPlayStartAudio = false;
+        switch (scene.name)
+        {
+            case "Game":
+                PlayLetgo();
+                break;
+            case "GameChallenge":
+                PlayStartAudioByGameType();
+                break;
+        }
+    }
+
+    public void PlayStartAudioByGameType() {
+
+        if (!CommonConfig.StandaloneModeOrPlatformB) return;
+
+        if (GameMgr.gameType == 3)
+        {
+            PlayGoPheasuntHunt();
+        }
+        else if (GameMgr.gameType == 4)
+        {
+            PlayGoHareHunt();
+        }
+        else if (GameMgr.gameType == 5)
+        {
+            PlayGoWolfHunt();
+        }
+    }
+
 }

+ 2 - 0
Assets/BowArrow/Scripts/View/TimeLimitGameDistanceSelectView.cs

@@ -40,6 +40,8 @@ public class TimeLimitGameDistanceSelectView : MonoBehaviour
                 ((TimeLimitGameMode) GameMgr.ins.gameMode).ConfirmSelectedTargetDistance();
                 Destroy(this.gameObject);
                 action_OnClickSelectDistance?.Invoke();
+                //增加b端入场音效
+                AudioMgr.ins.PlayLetgo();
             });
         }
     }

+ 2 - 0
Assets/BowArrow/Scripts/View/TimeLimitGameSettleView.cs

@@ -59,5 +59,7 @@ public class TimeLimitGameSettleView : MonoBehaviour
         AudioMgr.ins.PlayBtn();
         TimeLimitGameMode.insCountWillTryAgain = TimeLimitGameMode.insCount + 1; 
         SceneManager.LoadScene(SceneManager.GetActiveScene().name, LoadSceneMode.Single);
+        //这里设置需要播放开始音效
+        AudioMgr.bNeedPlayStartAudio = true;
     }
 }