欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

在Unity中捕捉Android的常用按鈕返回事件

 更新時(shí)間:2016年12月21日 09:42:30   作者:XavierChiang  
在Unity開(kāi)發(fā)中捕捉Android的常用事件其實(shí)很簡(jiǎn)單,下面通過(guò)實(shí)例代碼給大家詳細(xì)介紹下,感興趣的朋友一起看看吧

在Unity開(kāi)發(fā)中捕捉Android的常用事件其實(shí)很簡(jiǎn)單

Input.GetKey(KeyCode.Escape)  
Input.GetKeyDown(KeyCode.Home)  
// 返回鍵 
if ( Application.platform == RuntimePlatform.Android &&(Input.GetKeyDown(KeyCode.Escape))) 
{ 
  //.... 
} 
// Home鍵 
if ( Application.platform == RuntimePlatform.Android &&(Input.GetKeyDown(KeyCode.Home) )) 
{ 
  //..... 
} 

以上所述是小編給大家介紹的在Unity中捕捉Android的常用按鈕返回事件,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論