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()); }); } }
private void setCloseBtnID(string str) { GameButton close = Make <GameButton>(str); if (close != null) { close.AddClickCallBack(onClickClose); } }
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); } } }