🌈 搜索
📅  最后修改于: 2022-03-11 14:48:48.944000             🧑  作者: Mango
if (yourObject.gameObject.CompareTag ("Player")) { Debug.Log(yourObject.name + "has the tag 'Player' !"); }