[Unity菜鸟] Unity鼠标双击,鼠标函数整理(未完)

1. 鼠标双击

 void OnGUI()
    {
        Event Mouse = Event.current;
        if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2)
        {
            // 调用你的函数
            print("Double Click"); 
        }
    }

  

posted @ 2014-06-09 10:04  quanzhan  阅读(599)  评论(0编辑  收藏  举报