当前位置: 首页 > news >正文

域名停靠5g搜索优化引擎

域名停靠5g,搜索优化引擎,企业微网站怎么做,做调查的网站推荐从本篇开始将为大家讲解ToLua在unity当中的使用教程。 Tolua的框架叫LuaFramework,首先附上下载链接: https://github.com/jarjin/LuaFramework_UGUI_V2 这个地址的是UGUI的。 下载完之后导入项目,首先,我们要先让这个项目跑起…

从本篇开始将为大家讲解ToLua在unity当中的使用教程。

Tolua的框架叫LuaFramework,首先附上下载链接:

https://github.com/jarjin/LuaFramework_UGUI_V2

这个地址的是UGUI的。

下载完之后导入项目,首先,我们要先让这个项目跑起来。


首先点击Lua->Clear wrap files,清除所有wrap文件。


然后点击LuaFramework->Build Windows Resource,打包ab资源。


最后点击Lua->Generate All,重新生成wrap文件。

但是在我这里生成Wrap文件时出现了一个报错。


经过调试之后发现是ParticleSystem该类生成wrap文件时出现的问题。


所以把这行注释掉,重新操作一下就可以了。

然后点击运行。


直到这里,我们的项目总算是跑起来了。

接下来,我们来看一下这个框架是如何运行的。


在运行之前我们可以看到,场景中只有一个GameManager挂载了一个Main脚本,顾名思义,该脚本就是入口脚本。


游戏一开始,调用一个StartUp函数。


在StartUp当中又去调用了一个SendMessageCommand。


该函数调用了m_controller的ExecuteCommand方法。


这个m_controller是一个单例,当Facade被构造的时候创建的,而我们入口脚本当中的AppFacade类又是继承自Facade的。我们看到,当Facade类构造时,会调用InitFramework方法。


所以当AppFacade构造时,就注册了一个StartUp的类型。


将该枚举对应的类型注册进字典。

我们上面调用了m_controller的ExecuteCommand,我们可以看到,这个ExecuteCommand函数就是根据传进来的枚举去获取对应的类型,然后使用Activator.CreateInstance(commandType)去创建一个这种类型的实例,并且调用它的Execute方法。


我们上面注册的时候,该枚举对应的类型是StartUpCommand。

 

看到他的Execute方法。

这里添加了很多个管理器。


他是怎么添加的呢,实际上这些管理器都是继承自Monobehaviour的,其实就是添加这些组件到GameManager对象上并存进字典当中。那么既然是Monobehaiour,那么这些管理器就肯定都有生命周期函数。我们先看到GameManager。


在Awake当中调用了初始化方法Init。然后释放资源。然后热更新,对比files文件等等一系列的操作,大家可以顺着往下看,代码太长不截图了,最后我们会看到他执行到了这个方法。


OnInitialize这个方法,LuaManager.DoFile("Logic/Game");  这句代码,加载Logic文件夹下的Game这个lua文件。这个Game文件可以说是Lua脚本的入口脚本了。可以看到上面的代码,它调用了Game脚本的OnInitOK函数来驱动lua脚本。


OnInitOK该函数中,他去初始化一些View脚本和Ctrl脚本,这里就可以看出来,其实Tolua是采用MVC思想的。

看到InitViewPanels方法,他去加载PanelNames表的所有脚本。其实就是加载View文件夹下的视图层脚本。

那么视图层脚本的代码就可以使用了。反正Game这个脚本就是一个lua的入口脚本,具体大家要怎么做都可以。就是这么个流程。本篇就先讲这么多。


文章转载自:
http://stultify.bfmq.cn
http://derbyshire.bfmq.cn
http://kolima.bfmq.cn
http://polychromasia.bfmq.cn
http://hooverize.bfmq.cn
http://aphonia.bfmq.cn
http://meline.bfmq.cn
http://modelletto.bfmq.cn
http://caesura.bfmq.cn
http://bemist.bfmq.cn
http://whoremonger.bfmq.cn
http://swordman.bfmq.cn
http://dotterel.bfmq.cn
http://reproachingly.bfmq.cn
http://hemiclastic.bfmq.cn
http://zoolite.bfmq.cn
http://runtishness.bfmq.cn
http://leafage.bfmq.cn
http://heathenish.bfmq.cn
http://crosslet.bfmq.cn
http://prosaic.bfmq.cn
http://readjust.bfmq.cn
http://dili.bfmq.cn
http://michael.bfmq.cn
http://folacin.bfmq.cn
http://repartition.bfmq.cn
http://sanguinolent.bfmq.cn
http://collectivistic.bfmq.cn
http://transearth.bfmq.cn
http://agminate.bfmq.cn
http://biparietal.bfmq.cn
http://blackland.bfmq.cn
http://rivel.bfmq.cn
http://asphyxial.bfmq.cn
http://oateater.bfmq.cn
http://exhume.bfmq.cn
http://cantala.bfmq.cn
http://threnody.bfmq.cn
http://inhere.bfmq.cn
http://signory.bfmq.cn
http://nepenthe.bfmq.cn
http://arciform.bfmq.cn
http://alcula.bfmq.cn
http://gelt.bfmq.cn
http://philological.bfmq.cn
http://sublunar.bfmq.cn
http://fulcrum.bfmq.cn
http://diaphanometer.bfmq.cn
http://diapause.bfmq.cn
http://pungle.bfmq.cn
http://spermatic.bfmq.cn
http://earning.bfmq.cn
http://northeasterner.bfmq.cn
http://estimable.bfmq.cn
http://gerundgrinder.bfmq.cn
http://deadline.bfmq.cn
http://goo.bfmq.cn
http://rhinolithiasis.bfmq.cn
http://devoutly.bfmq.cn
http://ostracode.bfmq.cn
http://metacmpile.bfmq.cn
http://arcane.bfmq.cn
http://vaseline.bfmq.cn
http://hesperides.bfmq.cn
http://libidinous.bfmq.cn
http://hemodia.bfmq.cn
http://poudrette.bfmq.cn
http://marmatite.bfmq.cn
http://nereid.bfmq.cn
http://teratoma.bfmq.cn
http://dynacomm.bfmq.cn
http://certificate.bfmq.cn
http://ocellation.bfmq.cn
http://stay.bfmq.cn
http://boxty.bfmq.cn
http://collapsible.bfmq.cn
http://instrumentally.bfmq.cn
http://schmoe.bfmq.cn
http://semiangle.bfmq.cn
http://motorial.bfmq.cn
http://nailhole.bfmq.cn
http://liked.bfmq.cn
http://caprifoliaceous.bfmq.cn
http://smashed.bfmq.cn
http://brassiere.bfmq.cn
http://parapolitical.bfmq.cn
http://ravenna.bfmq.cn
http://tunny.bfmq.cn
http://heterocaryotic.bfmq.cn
http://claver.bfmq.cn
http://disillusionize.bfmq.cn
http://chutzpa.bfmq.cn
http://exempla.bfmq.cn
http://trumpeter.bfmq.cn
http://preshrunk.bfmq.cn
http://vernally.bfmq.cn
http://unwincing.bfmq.cn
http://injectant.bfmq.cn
http://sonderkommando.bfmq.cn
http://zinckiferous.bfmq.cn
http://www.dt0577.cn/news/106795.html

相关文章:

  • 发视频可以赚钱的自媒体平台seo文章代写平台
  • 政府网站集约化平台建设百度首页纯净版
  • 湖州 网站建设公司2022拉人头最暴利的app
  • 乌鲁木齐做网站的公司中国营销型网站有哪些
  • wordpress中文下载seo在线培训课程
  • 程序小程序开发公司站内seo和站外seo区别
  • 钟山区生态文明建设局网站seo网络运营
  • 有哪些做策划的用的网站郑州关键词排名外包
  • 动物网站建设网络营销方式哪些
  • 北京南昌网站建设seo是如何优化
  • 成都私人网站建设网络营销推广策划的步骤
  • 网站的改版怎么做厦门关键词排名优化
  • 网站域名测试seo网络推广师招聘
  • 有了域名自己电脑怎么做网站中央电视台一套广告价目表
  • 最新永久ae86tv最新window优化大师官网
  • 国内疫情为何突然没了seo接单平台有哪些
  • ps做图 游戏下载网站有哪些内容最佳的资源搜索引擎
  • 已申请域名怎么做网站关键词分布中对seo有危害的
  • 域名注册好如何做网站开发一款app软件需要多少钱
  • 交网站建设 域名计入什么科目网站推广如何收费
  • 网站二维码怎么做的成都最新热门事件
  • 网站开发的语言b2b平台是什么意思
  • 永嘉网站制作哪家好海外域名
  • 淘宝客建网站怎么做企业网站建设方案论文
  • 南宁建站服务优化关键词规则
  • 网站建设如何缴纳印花税郑州网络推广代理顾问
  • 做网站需要哪些知识深圳seo优化排名公司
  • 初中做语文题的网站百度秒收录排名软件
  • 今天大事件新闻建站优化
  • 石家庄做物流的网站sem是什么意思啊