2018-11-20 20:10:49 +01:00
|
|
|
using Fie.Manager;
|
|
|
|
using Fie.Scene;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2018-11-21 21:16:20 +01:00
|
|
|
namespace Fie.Core {
|
|
|
|
/// <summary>
|
|
|
|
/// Entry-point for Fie. Everything starts here.
|
|
|
|
/// </summary>
|
|
|
|
public class FieBootstrap : MonoBehaviour {
|
2023-07-19 16:41:59 +02:00
|
|
|
public static bool isBootedFromBootStrap { get; private set; }
|
2018-11-20 20:10:49 +01:00
|
|
|
|
2018-11-21 21:16:20 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Starts the game. Loads the title screen.
|
|
|
|
/// </summary>
|
|
|
|
private void Start() {
|
2018-11-20 20:10:49 +01:00
|
|
|
FieManagerFactory.I.StartUp();
|
2018-11-21 21:16:20 +01:00
|
|
|
FieManagerBehaviour<FieSceneManager>.I.LoadScene(new FieSceneTitle(), allowSceneActivation: true,
|
|
|
|
FieFaderManager.FadeType.OUT_TO_WHITE,
|
|
|
|
FieFaderManager.FadeType.IN_FROM_WHITE,
|
|
|
|
1.5f
|
|
|
|
);
|
|
|
|
|
|
|
|
isBootedFromBootStrap = true;
|
|
|
|
|
|
|
|
FieManagerBehaviour<FieAudioManager>.I.ChangeMixerVolume(0f, 0.5f,
|
|
|
|
FieAudioManager.FieAudioMixerType.BGM,
|
|
|
|
FieAudioManager.FieAudioMixerType.Voice,
|
|
|
|
FieAudioManager.FieAudioMixerType.SE
|
|
|
|
);
|
|
|
|
|
2018-11-20 20:10:49 +01:00
|
|
|
UnityEngine.Object.Destroy(base.gameObject);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|