Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     bgmSource.DOFade(0, 5).OnComplete(() => StartCoroutine(LoadingScreen.LoadScene(menuScene)));
     virtualPlayerCamera.SetActive(false);
 }
Exemplo n.º 2
0
 private void Start()
 {
     LoadingScreen.Create();
 }
Exemplo n.º 3
0
 private void Start()
 {
     //call it to be safe.
     LoadingScreen.Create();
 }