[Feat] 메인 배경음악 및 기타 음악 소스 추가
This commit is contained in:
parent
3f22d8a213
commit
3edd185d7d
BIN
Assets/Resources/gameStart sound.mp3
Normal file
BIN
Assets/Resources/gameStart sound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/gameStart sound.mp3.meta
Normal file
23
Assets/Resources/gameStart sound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd9e9e1d735e3d949a9f8ecd77859d05
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/lose sound.mp3
Normal file
BIN
Assets/Resources/lose sound.mp3
Normal file
Binary file not shown.
23
Assets/Resources/lose sound.mp3.meta
Normal file
23
Assets/Resources/lose sound.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a467daa72a01214384d2fa5677f668a
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/main bgm.mp3
Normal file
BIN
Assets/Resources/main bgm.mp3
Normal file
Binary file not shown.
23
Assets/Resources/main bgm.mp3.meta
Normal file
23
Assets/Resources/main bgm.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d9c7fb20aa822c48933d00b6bd6a757
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/stone sound 1.mp3
Normal file
BIN
Assets/Resources/stone sound 1.mp3
Normal file
Binary file not shown.
23
Assets/Resources/stone sound 1.mp3.meta
Normal file
23
Assets/Resources/stone sound 1.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5de9b9d7ce75cb24fb4c35042ee0624e
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/stone sound 2.mp3
Normal file
BIN
Assets/Resources/stone sound 2.mp3
Normal file
Binary file not shown.
23
Assets/Resources/stone sound 2.mp3.meta
Normal file
23
Assets/Resources/stone sound 2.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d597d76653ee324caa4d58e91369a58
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/stone sound 3.mp3
Normal file
BIN
Assets/Resources/stone sound 3.mp3
Normal file
Binary file not shown.
23
Assets/Resources/stone sound 3.mp3.meta
Normal file
23
Assets/Resources/stone sound 3.mp3.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 829ae38dccffa8f4ebf5829b8963ad31
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -4,8 +4,10 @@ using UnityEngine.SceneManagement;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[RequireComponent(typeof(AudioSource))]
|
||||
public class GameManager : Singleton<GameManager>
|
||||
{
|
||||
[Header("Panel")]
|
||||
[SerializeField] private GameObject mainPanel;
|
||||
[SerializeField] private GameObject signinPanel;
|
||||
[SerializeField] private GameObject signupPanel;
|
||||
@ -16,6 +18,10 @@ public class GameManager : Singleton<GameManager>
|
||||
[SerializeField] private GameObject giboPanel;
|
||||
[SerializeField] private GameObject loadingPanel;
|
||||
|
||||
[Header("Sound")]
|
||||
[SerializeField] private AudioClip mainBgm;
|
||||
private AudioSource audioSource;
|
||||
|
||||
private LoadingPanelController loadingPanelController;
|
||||
|
||||
private UserManager _userManager; // UserManager 인스턴스 관리
|
||||
@ -31,6 +37,9 @@ public class GameManager : Singleton<GameManager>
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// TODO: 음악 관련은 AuidoManager로 분리?
|
||||
PlayMainBGM();
|
||||
|
||||
// UserManager가 없으면 생성
|
||||
if (UserManager.Instance == null)
|
||||
{
|
||||
@ -59,6 +68,21 @@ public class GameManager : Singleton<GameManager>
|
||||
// _gameLogic = new GameLogic(_stoneController, _gameType, fioTimer);
|
||||
}
|
||||
|
||||
private void PlayMainBGM()
|
||||
{
|
||||
// AudioSource 컴포넌트 가져오기
|
||||
audioSource = GetComponent<AudioSource>();
|
||||
|
||||
if (audioSource != null && mainBgm != null)
|
||||
{
|
||||
// 배경음악이 설정되면 재생
|
||||
audioSource.clip = mainBgm; // 음악 클립 설정
|
||||
audioSource.loop = true; // 반복 재생
|
||||
audioSource.volume = 0.4f; // 볼륨
|
||||
audioSource.Play(); // 음악 시작
|
||||
}
|
||||
}
|
||||
|
||||
private void TryAutoSignin()
|
||||
{
|
||||
NetworkManager.Instance.GetInfo((userInfo) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user