bgm starts after camfocus now
This commit is contained in:
parent
8a4103de5b
commit
f685447462
4 changed files with 6 additions and 5 deletions
|
@ -123,7 +123,7 @@ GameObject:
|
||||||
- component: {fileID: 30160410}
|
- component: {fileID: 30160410}
|
||||||
- component: {fileID: 30160411}
|
- component: {fileID: 30160411}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Audio Source
|
m_Name: menu
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
@ -150,7 +150,8 @@ AudioSource:
|
||||||
m_GameObject: {fileID: 30160409}
|
m_GameObject: {fileID: 30160409}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 4
|
serializedVersion: 4
|
||||||
OutputAudioMixerGroup: {fileID: 0}
|
OutputAudioMixerGroup: {fileID: 243359265566762914, guid: efb934a745665924d8c7dd46c0a117ae,
|
||||||
|
type: 2}
|
||||||
m_audioClip: {fileID: 8300000, guid: a90787ea4a183c44699deb2babada64b, type: 3}
|
m_audioClip: {fileID: 8300000, guid: a90787ea4a183c44699deb2babada64b, type: 3}
|
||||||
m_PlayOnAwake: 0
|
m_PlayOnAwake: 0
|
||||||
m_Volume: 1
|
m_Volume: 1
|
||||||
|
@ -1107,7 +1108,7 @@ AudioSource:
|
||||||
OutputAudioMixerGroup: {fileID: 243359265566762914, guid: efb934a745665924d8c7dd46c0a117ae,
|
OutputAudioMixerGroup: {fileID: 243359265566762914, guid: efb934a745665924d8c7dd46c0a117ae,
|
||||||
type: 2}
|
type: 2}
|
||||||
m_audioClip: {fileID: 8300000, guid: c89601ee48d799943a756d1d15cd4954, type: 3}
|
m_audioClip: {fileID: 8300000, guid: c89601ee48d799943a756d1d15cd4954, type: 3}
|
||||||
m_PlayOnAwake: 1
|
m_PlayOnAwake: 0
|
||||||
m_Volume: 1
|
m_Volume: 1
|
||||||
m_Pitch: 1
|
m_Pitch: 1
|
||||||
Loop: 0
|
Loop: 0
|
||||||
|
|
|
@ -693,7 +693,7 @@ AudioSource:
|
||||||
OutputAudioMixerGroup: {fileID: 243359265566762914, guid: efb934a745665924d8c7dd46c0a117ae,
|
OutputAudioMixerGroup: {fileID: 243359265566762914, guid: efb934a745665924d8c7dd46c0a117ae,
|
||||||
type: 2}
|
type: 2}
|
||||||
m_audioClip: {fileID: 8300000, guid: c89601ee48d799943a756d1d15cd4954, type: 3}
|
m_audioClip: {fileID: 8300000, guid: c89601ee48d799943a756d1d15cd4954, type: 3}
|
||||||
m_PlayOnAwake: 1
|
m_PlayOnAwake: 0
|
||||||
m_Volume: 1
|
m_Volume: 1
|
||||||
m_Pitch: 1
|
m_Pitch: 1
|
||||||
Loop: 0
|
Loop: 0
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class AudioControl : MonoBehaviour
|
||||||
|
|
||||||
public void LevelBgm()
|
public void LevelBgm()
|
||||||
{
|
{
|
||||||
maintheme.time = lvlbgm;
|
maintheme.PlayDelayed(1.3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SfxPlay(int sound)
|
public void SfxPlay(int sound)
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue