You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
498 B
C#
20 lines
498 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DG.Tweening;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class Bootstrapper : MonoBehaviour
|
|
{
|
|
[SerializeField] private Slider loadingSlider;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
loadingSlider.DOValue(100f, 2.5f).OnComplete(() =>
|
|
{
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
|
});
|
|
}
|
|
}
|