17 lines
373 B
C#
17 lines
373 B
C#
using UnityEngine;
|
|
|
|
public class WelcomeMap : MonoBehaviour
|
|
{
|
|
private float timeToClose = 3f;
|
|
|
|
private void Update()
|
|
{
|
|
timeToClose = Mathf.MoveTowards(timeToClose, 0f, Time.unscaledDeltaTime);
|
|
if (timeToClose == 0f)
|
|
{
|
|
AudioListener.volume = Singleton<SaveDataManager>.Instance.SettingsData.MasterVolume;
|
|
GameManager.Instance.UnloadAddectiveScene();
|
|
}
|
|
}
|
|
}
|