12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PlaySounds : MonoBehaviour
- {
- private AudioSource sound;
- public string soundName;
- private float isDestroyTimer;
- void Start()
- {
-
- sound = this.GetComponent<AudioSource>();
-
- PlaySound();
-
- }
- void Update()
- {
-
-
-
-
-
-
-
- }
-
- public void PlaySound()
- {
- if (sound != null)
- {
-
-
- }
- }
- }
|