Exemplo n.º 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()); });
            }
        }
Exemplo n.º 2
0
        private void setCloseBtnID(string str)
        {
            GameButton close = Make <GameButton>(str);

            if (close != null)
            {
                close.AddClickCallBack(onClickClose);
            }
        }
Exemplo n.º 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);
         }
     }
 }