移動端藍牙按鍵,兼容iOS12.3以下

            if (Application.platform == RuntimePlatform.WindowsEditor)
            {
                if (Input.GetKey(KeyCode.Space))
                {
                    Debug.Log("spcae");
                    break;
                }
            }
            else
            {
                x = Input.GetAxisRaw("Mouse X");
                y = Input.GetAxisRaw("Mouse Y");
                if (Input.touchCount == 1)
                {
                    if (y.ToString().Contains("16.7")
                        || y.ToString().Contains("33.4"))
                    {
                        Debug.Log("next");
                        break;
                    }
                }
            }

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章