public void InvokeShowEvent() { if (OnShow != null) { OnShow.Invoke(); } if (ShowSound != null) { EffectSoundPlayer.PlayEffectSound(ShowSound.name); } }
public void InvokeHideEvent() { if (OnHide != null) { OnHide.Invoke(); } if (HideSound != null) { EffectSoundPlayer.PlayEffectSound(HideSound.name); } }