mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-12-02 01:47:58 +01:00
22 lines
769 B
C#
22 lines
769 B
C#
using Fie.Manager;
|
|
using Fie.Scene;
|
|
using UnityEngine;
|
|
|
|
namespace Fie.Core
|
|
{
|
|
public class FieBootstrap : MonoBehaviour
|
|
{
|
|
private static bool _isBootedFromBootStrap;
|
|
|
|
public static bool isBootedFromBootStrap => _isBootedFromBootStrap;
|
|
|
|
private void Start()
|
|
{
|
|
FieManagerFactory.I.StartUp();
|
|
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);
|
|
UnityEngine.Object.Destroy(base.gameObject);
|
|
}
|
|
}
|
|
}
|