using System.Collections; using System.Collections.Generic; using DG.Tweening; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class Bootstrapper : MonoBehaviour { [SerializeField] private Image loadingSlider; // Start is called before the first frame update void Start() { loadingSlider.DOFillAmount(1f, 2.5f).OnComplete(() => { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); }); } }