959e80cf72
assets upload description.
27 lines
616 B
C#
27 lines
616 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using RPGCreationKit;
|
|
using RPGCreationKit.Player;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class SceneMusicPlayer : MonoBehaviour
|
|
{
|
|
public AudioClip BackgroundMusic;
|
|
// Start is called before the first frame update
|
|
void Start() {
|
|
StartCoroutine(PlayMusic());
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
IEnumerator PlayMusic() {
|
|
yield return new WaitForSeconds(1.0f);
|
|
GameAudioManager.instance.PlayOneShot(AudioSources.Music, BackgroundMusic);
|
|
}
|
|
}
|