📜  检测右键单击统一 - C# 代码示例

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

代码示例1
function Update()
{
   if(Input.GetMouseButtonDown(0)) Debug.Log("Pressed left click.");
   if(Input.GetMouseButtonDown(1)) Debug.Log("Pressed right click.");
   if(Input.GetMouseButtonDown(2)) Debug.Log("Pressed middle click.");
}