码迷,mamicode.com
首页 > 编程语言 > 详细

unity3D EventDelegate 传参 加载atlas

时间:2015-04-22 20:50:09      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

 UIButton buttonBg1 = goTipsBg.GetComponent<UIButton>();
            EventDelegate ev = new EventDelegate(this, "ButtonBgOnClick");
            ev.parameters[0].obj = pbtn;

            EventDelegate.Add(buttonBg1.onClick, ev);


//、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

if (atlasMain == null)
        {
            atlasMain = Resources.Load("Atlas/main", typeof(UIAtlas)) as UIAtlas;
        }


        spritIcon.atlas = atlasMain;
        spritIcon.spriteName = Util.toCoinString(mb.coinType);

unity3D EventDelegate 传参 加载atlas

标签:

原文地址:http://blog.csdn.net/ecaifu800/article/details/45198565

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!