Unity3D 表对象分类中的实现(C#)

// Sort by distance in descending order

private void SortTargetsByDistance () {

targets.Sort(delegate(Transform t1, Transform t2) {

return Vector3.Distance(t1.position, myTransform.position).CompareTo(Vector3.Distance(t2.position, myTransform.position));


});

}

上一篇:sublime 相关配置


下一篇:Vmware 8.00 文件共享ubuntu