layer表示0-31的数字,是层。 而如果定义了layermask,layermask多了everything和nothing layer的数值,参考右上叫的layer,打开add layer来看. 判断一个物体的在不在layermask中。 如果raycast用layermask,选中的表示都要 ...
分类:
其他好文 时间:
2017-03-27 14:17:44
阅读次数:
321
What a man needs most is appreciated. 人性最深切的需求就是渴望别人的赞赏。 Being appreciated by others is very important, and that may be the power to motivate us. Some ...
分类:
其他好文 时间:
2017-03-25 18:55:13
阅读次数:
133
Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game.The size of the chesserboard i ...
分类:
其他好文 时间:
2017-03-21 00:01:19
阅读次数:
182
pychallenge之四 <!-- urllib may help. DON'T TRY ALL NOTHINGS, since it will never end. 400 times is more than enough. --> 点图片跳出了:and the next nothing is ...
分类:
其他好文 时间:
2017-03-17 23:40:39
阅读次数:
243
转载自xingbao各位好,这是介绍阿里云伏羲(fuxi)调度器系列文章的第三篇,今天主要介绍针对在线服务的资源强稳定 一、FuxiMaster简介 FuxiMaster和Yarn非常相似,定位于分布式系统中资源管理与分配的角色:一个典型的资源分配流程图如下所示: 作为调度器,目前FuxiMas ...
分类:
其他好文 时间:
2017-03-17 10:57:25
阅读次数:
337
转自:http://blog.csdn.net/jasonding1354/article/details/46507595 Scala的单例对象 Scala不能定义静态成员,而是代之定义单例对象(singleton object)。以object关键字定义。 对象定义了某个类的单个实例,包含了你想 ...
分类:
其他好文 时间:
2017-03-10 12:31:01
阅读次数:
196
/** * 贪婪模式(EAGER) */public class Singleton { private static final Singleton INSTANCE = new Singleton(); private Singleton() { // DO NOTHING } public s ...
分类:
其他好文 时间:
2017-03-08 13:49:01
阅读次数:
122
题目描述 Farmer John suffered a terrible loss when giant Australian cockroaches ate the entirety of his hay inventory, leaving him with nothing to feed th ...
分类:
其他好文 时间:
2017-03-01 21:17:53
阅读次数:
170
//题目来源:http://poj.org/problem?id=1328 解题思路: 先讲岛屿按照X坐标,按照升序排列。 计算以岛屿为中心,雷达的有效检测范围为半径,计算出与X轴的交点。 当左边的岛屿,与X轴的交点(靠右的那个交点)>它右边那个岛屿与X轴的交点(靠左边那个),那么雷达装置就可以省一 ...
分类:
其他好文 时间:
2017-03-01 18:01:23
阅读次数:
243
Change id to instancetype in appropriate places Change enum to NS_ENUM or NS_OPTIONS The NS_ENUM macro helps define both the name and type of the enum ...
分类:
其他好文 时间:
2017-02-22 13:08:32
阅读次数:
128