Esempio n. 1
0
    public void InvokeShowEvent()
    {
        if (OnShow != null)
        {
            OnShow.Invoke();
        }

        if (ShowSound != null)
        {
            EffectSoundPlayer.PlayEffectSound(ShowSound.name);
        }
    }
Esempio n. 2
0
    public void InvokeHideEvent()
    {
        if (OnHide != null)
        {
            OnHide.Invoke();
        }

        if (HideSound != null)
        {
            EffectSoundPlayer.PlayEffectSound(HideSound.name);
        }
    }