📜  unity 点击二维对象 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:43.761000             🧑  作者: Mango

代码示例1
// Requires for the object to have a collider and this script attached
private void OnMouseDown()
{
    Debug.Log("Clicked on object!");
}