Object.operator != 不等于
static operator != (x : Object, y : Object) : bool
Description描述
Compares if two objects refer to a different object
比较如果两个物体不相同。
var target : Transform;
function Update () {
// 如果target 不同于 transform
if (target != transform) {
print("Another object");
}
}
最后修改:2010年12月9日 Thursday 0:20