update .gitignore

This commit is contained in:
2022-11-10 13:49:57 +05:00
parent 213707fac7
commit 943eef44e3
23 changed files with 1231 additions and 5022 deletions
+31
View File
@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.SceneManagement;
[RequireComponent(typeof(CanvasGroup))]
public class LogoHandler : MonoBehaviour
{
[SerializeField] private CanvasGroup logo;
private CanvasGroup canvasGroup;
IEnumerator Start()
{
DontDestroyOnLoad(gameObject);
canvasGroup = GetComponent<CanvasGroup>();
var sceneLoading = SceneManager.LoadSceneAsync(1, LoadSceneMode.Single);
while(!sceneLoading.isDone)
yield return null;
yield return new WaitForSeconds(2);
logo.DOFade(0, .4f)
.OnComplete(() => canvasGroup
.DOFade(0, .8f)
.OnComplete(() => Destroy(this.gameObject)));
}
}