= 4 yıl önce
ebeveyn
işleme
7dfffd21b7

+ 5 - 1
Assets/Resources/System/AudioM.cs

@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine;
 using System.Linq;
 using System.Linq;
 
 
-public static class AudioM {
+public class AudioM : MonoBehaviour {
 
 
     private static Dictionary<string, AudioClip> audios = null;
     private static Dictionary<string, AudioClip> audios = null;
     public static void Play(string name, float volume = 1f) {
     public static void Play(string name, float volume = 1f) {
@@ -14,4 +14,8 @@ public static class AudioM {
         AudioSource.PlayClipAtPoint(audios[name], Camera.allCameras[0].transform.position, volume);
         AudioSource.PlayClipAtPoint(audios[name], Camera.allCameras[0].transform.position, volume);
     }
     }
 
 
+    private void Awake() {
+        audios = null;
+    }
+
 }
 }

+ 13 - 0
Assets/Scenes/SceneMain.unity

@@ -4138,6 +4138,7 @@ GameObject:
   - component: {fileID: 1378097946}
   - component: {fileID: 1378097946}
   - component: {fileID: 1378097949}
   - component: {fileID: 1378097949}
   - component: {fileID: 1378097950}
   - component: {fileID: 1378097950}
+  - component: {fileID: 1378097951}
   m_Layer: 0
   m_Layer: 0
   m_Name: Managers
   m_Name: Managers
   m_TagString: Untagged
   m_TagString: Untagged
@@ -4243,6 +4244,18 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   m_EditorClassIdentifier: 
   textStory: {fileID: 1797852847}
   textStory: {fileID: 1797852847}
   shapeBack: {fileID: 2088920593}
   shapeBack: {fileID: 2088920593}
+--- !u!114 &1378097951
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 1378097945}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 9d9bd502a18108c4faace5119884accb, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
 --- !u!1 &1415309056
 --- !u!1 &1415309056
 GameObject:
 GameObject:
   m_ObjectHideFlags: 0
   m_ObjectHideFlags: 0