- 博客(9)
- 资源 (4)
- 问答 (4)
- 收藏
- 关注
原创 通过打印日志的方式检查BUG & 单例模式类使用前要保证被初始化
解决方案: 调整脚本执行顺序,让Transcript类(脚本)的执行顺序先于SkillButton类(脚本)。Unity>Edit>
2016-05-16 23:14:10 360
原创 通过委托与事件监听状态改变来更新UI
该博文涵盖的知识点1. C# 委托2. 如何利用委托监听事件以此更新显示所要完成目标我们刚开始做好的部分UI界面如下图所示:观察左边的红色方框,我们先做了实例的姓名,头像,slider,和Label等,在运行游戏时候需要更新相应的属性。在下面的脚本中,我们分别更新:左边方框中的nameLabel(黄晓明),energyLabel(50/100),toughenLab
2016-05-14 00:24:25 3331
转载 C++使用STL:慎重选择删除元素的方法
原文出自:C++使用STL:慎重选择删除元素的方法 关于要删除容器中元素要选用什么样的方法(因为不同的容器所支持或删除的方法效率不同),总结如下:假设容器:Containerc;1)要删除容器中中有特定值的所有对象:如果容器是vector、string或deque,则使用erase-remove习惯用法:c.erase(remove(
2016-05-03 18:03:21 1509
原创 27. Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant memory.The
2016-05-03 16:28:43 311
翻译 80. Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted Array II Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice? For example, Given sorted array nums = [1,1,1,2,2,3], Your func
2016-05-02 22:25:15 274
原创 26. Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for anoth
2016-05-02 17:31:46 287
翻译 Unity Official Tutorial --- CREATING A BREAKOUT GAME FOR BEGINNERS
CREATING A BREAKOUT GAME FOR BEGINNERSIn this live training session we look at creating a Breakout style game including basic game mechanics, user interface and a game manager script.Paddleusing UnityE
2016-05-01 14:58:02 588
想搭建一款流媒体服务器
2016-03-18
QT做计算器时,把pushButton拖到Grid Layout上
2016-03-17
正则表达式匹配main函数块
2016-03-11
读取文件夹中所有文件的名称(含后缀)
2016-02-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人