Beispiel #1
0
    public void InvokeHideEvent()
    {
        if (OnHide != null)
        {
            OnHide.Invoke();
        }

        if (HideSound != null)
        {
            EffectSoundPlayer.PlayEffectSound(HideSound.name);
        }
    }
Beispiel #2
0
    public void InvokeShowEvent()
    {
        if (OnShow != null)
        {
            OnShow.Invoke();
        }

        if (ShowSound != null)
        {
            EffectSoundPlayer.PlayEffectSound(ShowSound.name);
        }
    }
Beispiel #3
0
 public override void Initialize()
 {
     _instance = this;
     base.Initialize();
 }