2021-11-30 18:49:54 +03:00

20 lines
391 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
public class Gameover : MonoBehaviour
{
public AudioSource source;
public GameObject fake;
// Update is called once per frame
void Update()
{
if(fake.activeSelf == true && Extralife.staticLives < 1 )
{
source.Play();
}
}
}