🌈 搜索
📅  最后修改于: 2022-03-11 14:48:58.655000             🧑  作者: Mango
public bool IsInLayerMask(GameObject obj, LayerMask layerMask) { return ((layerMask.value & (1 << obj.layer)) > 0); }