Звук старта игры.

This commit is contained in:
DyatelO 2021-11-30 18:49:54 +03:00
parent 0e5411bb52
commit aeb83e5566
3 changed files with 32 additions and 0 deletions

View File

@ -18,6 +18,8 @@ public class AudioSwitcher : MonoBehaviour
s.source.volume = s.volume;
s.source.pitch = s.pitch;
}
Play("Startgame");
/*
foreach(Sounds p in phrases)
{

View File

@ -0,0 +1,19 @@
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();
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 393d2b0e827f7c4498aa535f4ef132f0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: