示例#1
0
        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()); });
            }
        }
示例#2
0
        private void setCloseBtnID(string str)
        {
            GameButton close = Make <GameButton>(str);

            if (close != null)
            {
                close.AddClickCallBack(onClickClose);
            }
        }
示例#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);
         }
     }
 }