using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MPStudio
{
    public class ShowHideSound : MonoBehaviour
    {
        public string showSound = "";
        public string closeSound = "";

        private void OnEnable()
        {
            if (showSound != "")
            {
                AudioManager.Inst.EffectPlay2(showSound);
            }
        }

        private void OnDisable()
        {
            if (closeSound != "")
            {
                AudioManager.Inst.EffectPlay2(closeSound);
            }
        }
    }
}