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