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