Files
PrinceOfGlory/Assets/Scripts/Scene_03/ShowSoundCtr.cs
kridoo 6e91a0c7f0 111
2025-09-15 17:32:08 +08:00

23 lines
503 B
C#

using System.Collections;
using System.Collections.Generic;
using BigSpace.Logic;
using BigSpace.XRCore.Event;
using UnityEngine;
public class ShowSoundCtr : MonoBehaviour
{
public AudioSource audioSource;
// Start is called before the first frame update
void Start()
{
GlobalEventMgr.Listen(GameEvent.EventShowSound, GameDataManage_EventShowSound);
}
void GameDataManage_EventShowSound()
{
if (audioSource != null)
audioSource.Play();
}
}