24 lines
653 B
C#
24 lines
653 B
C#
using UnityEngine;
|
|
|
|
public class MainMenuBootstrap : MonoBehaviour
|
|
{
|
|
[SerializeField] private PaymentGate paymentGate;
|
|
[SerializeField] private PaymentUI paymentUI;
|
|
[SerializeField] private MenuVideoManager videoManager;
|
|
[SerializeField] private CoinCounter coinCounter;
|
|
|
|
private void Awake()
|
|
{
|
|
if (!BootstrapperState.MainBootstraped)
|
|
{
|
|
SceneLoader.LoadScene("Bootstrap");
|
|
return;
|
|
}
|
|
|
|
paymentGate.Initialize(GameModesHolder.gameModes);
|
|
paymentUI.Initialize(paymentGate.gameModeAccess);
|
|
videoManager.Initialize();
|
|
coinCounter.Initialize();
|
|
}
|
|
}
|