Skip to content

Commit 568ad1c

Browse files
committed
edit prefab and comments
1 parent 0769d9a commit 568ad1c

2 files changed

Lines changed: 22 additions & 35 deletions

File tree

Assets/AudioManager/Prefabs/AudioManager.prefab

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GameObject:
1818
m_PrefabInternal: {fileID: 100100000}
1919
serializedVersion: 5
2020
m_Component:
21-
- component: {fileID: 224158444279101484}
21+
- component: {fileID: 4256197358107428}
2222
- component: {fileID: 82446467109516822}
2323
- component: {fileID: 82895809519452684}
2424
- component: {fileID: 114053768475971984}
@@ -29,6 +29,19 @@ GameObject:
2929
m_NavMeshLayer: 0
3030
m_StaticEditorFlags: 0
3131
m_IsActive: 1
32+
--- !u!4 &4256197358107428
33+
Transform:
34+
m_ObjectHideFlags: 1
35+
m_PrefabParentObject: {fileID: 0}
36+
m_PrefabInternal: {fileID: 100100000}
37+
m_GameObject: {fileID: 1746531962686694}
38+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
39+
m_LocalPosition: {x: 0, y: 0, z: 0}
40+
m_LocalScale: {x: 1, y: 1, z: 1}
41+
m_Children: []
42+
m_Father: {fileID: 0}
43+
m_RootOrder: 0
44+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3245
--- !u!82 &82446467109516822
3346
AudioSource:
3447
m_ObjectHideFlags: 1
@@ -39,10 +52,10 @@ AudioSource:
3952
serializedVersion: 4
4053
OutputAudioMixerGroup: {fileID: 0}
4154
m_audioClip: {fileID: 0}
42-
m_PlayOnAwake: 0
55+
m_PlayOnAwake: 1
4356
m_Volume: 1
4457
m_Pitch: 1
45-
Loop: 1
58+
Loop: 0
4659
Mute: 0
4760
Spatialize: 0
4861
SpatializePostEffects: 0
@@ -84,7 +97,7 @@ AudioSource:
8497
tangentMode: 0
8598
m_PreInfinity: 2
8699
m_PostInfinity: 2
87-
m_RotationOrder: 0
100+
m_RotationOrder: 4
88101
spreadCustomCurve:
89102
serializedVersion: 2
90103
m_Curve:
@@ -108,7 +121,7 @@ AudioSource:
108121
tangentMode: 0
109122
m_PreInfinity: 2
110123
m_PostInfinity: 2
111-
m_RotationOrder: 0
124+
m_RotationOrder: 4
112125
--- !u!82 &82895809519452684
113126
AudioSource:
114127
m_ObjectHideFlags: 1
@@ -119,7 +132,7 @@ AudioSource:
119132
serializedVersion: 4
120133
OutputAudioMixerGroup: {fileID: 0}
121134
m_audioClip: {fileID: 0}
122-
m_PlayOnAwake: 0
135+
m_PlayOnAwake: 1
123136
m_Volume: 1
124137
m_Pitch: 1
125138
Loop: 0
@@ -164,7 +177,7 @@ AudioSource:
164177
tangentMode: 0
165178
m_PreInfinity: 2
166179
m_PostInfinity: 2
167-
m_RotationOrder: 0
180+
m_RotationOrder: 4
168181
spreadCustomCurve:
169182
serializedVersion: 2
170183
m_Curve:
@@ -188,7 +201,7 @@ AudioSource:
188201
tangentMode: 0
189202
m_PreInfinity: 2
190203
m_PostInfinity: 2
191-
m_RotationOrder: 0
204+
m_RotationOrder: 4
192205
--- !u!114 &114053768475971984
193206
MonoBehaviour:
194207
m_ObjectHideFlags: 1
@@ -200,27 +213,3 @@ MonoBehaviour:
200213
m_Script: {fileID: 11500000, guid: 96664e25cf3e6be4697234e1ccd2633a, type: 3}
201214
m_Name:
202215
m_EditorClassIdentifier:
203-
musicSource: {fileID: 82446467109516822}
204-
effectSource: {fileID: 82895809519452684}
205-
lowPitchRange: 0.95
206-
highPitchRange: 1.05
207-
musicOn: 0
208-
effectOn: 0
209-
--- !u!224 &224158444279101484
210-
RectTransform:
211-
m_ObjectHideFlags: 1
212-
m_PrefabParentObject: {fileID: 0}
213-
m_PrefabInternal: {fileID: 100100000}
214-
m_GameObject: {fileID: 1746531962686694}
215-
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
216-
m_LocalPosition: {x: 0, y: 0, z: 0}
217-
m_LocalScale: {x: 0.0129629625, y: 0.0129629625, z: 0.0129629625}
218-
m_Children: []
219-
m_Father: {fileID: 0}
220-
m_RootOrder: 0
221-
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
222-
m_AnchorMin: {x: 0.5, y: 0.5}
223-
m_AnchorMax: {x: 0.5, y: 0.5}
224-
m_AnchoredPosition: {x: 0, y: 0}
225-
m_SizeDelta: {x: 100, y: 100}
226-
m_Pivot: {x: 0.5, y: 0.5}

Assets/AudioManager/Scripts/AudioManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ public bool EffectOn {
1616

1717
public static AudioManager Instance = null;
1818

19-
/// <summary>
20-
/// Singleton pattern.
21-
/// </summary>
2219
void Awake () {
20+
// Singleton Patter
2321
if (Instance == null) {
2422
Instance = this;
2523
} else if (Instance != this) {

0 commit comments

Comments
 (0)