mirror of
https://github.com/Kizuren/ShantiManti.git
synced 2025-12-26 17:23:45 +01:00
24 lines
600 B (Stored with Git LFS)
C#
24 lines
600 B (Stored with Git LFS)
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LevelCounter : MonoBehaviour
|
|
{
|
|
public Animator animator;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
StartCoroutine(Disabeling());
|
|
}
|
|
|
|
IEnumerator Disabeling()
|
|
{
|
|
yield return new WaitForSeconds(2.0f);
|
|
animator.SetBool("Disable", true);
|
|
yield return new WaitForSeconds(0.1f);
|
|
animator.SetBool("Disable", false);
|
|
yield return new WaitForSeconds(1.8f);
|
|
Destroy(gameObject);
|
|
}
|
|
}
|