Upload files to "/"

This commit is contained in:
aishandavaniaaanisah 2024-05-30 13:39:59 +07:00
parent 32164b414c
commit 28c712a7be
1 changed files with 17 additions and 0 deletions

17
Music.cs Normal file
View File

@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Music : MonoBehaviour
{
[SerializeField] AudioSource music;
public void OnMusic()
{
music.Play();
}
public void OffMusic()
{
music.Stop();
}
}