protected virtual void SetCloseBtnID(string str)
        {
            GameButton close = Make <GameButton>(str);

            if (close != null)
            {
                close.AddClickCallBack((GameObject go) => { this.Visible = false; EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, EngineCommonAudioKey.Close_Window.ToString()); });
            }
        }
Example #2
0
        private void setCloseBtnID(string str)
        {
            GameButton close = Make <GameButton>(str);

            if (close != null)
            {
                close.AddClickCallBack(onClickClose);
            }
        }
Example #3
0
 protected virtual void SetCloseBtnID(string str)
 {
     string[] strList = str.Split(';');
     for (int i = 0; i < strList.Length; i++)
     {
         GameButton close = Make <GameButton>(strList[i]);
         if (close != null)
         {
             close.AddClickCallBack(onClickClose);
         }
     }
 }