unity中虛擬搖桿的實現

實現效果:   實現: 使用NGUI添加虛擬搖桿背景和其子物體按鈕,爲按鈕Attach  boxcollider和ButtionScript。爲按鈕添加如下腳本: 注意:其中的靜態屬性可以在控制物體移動的代碼中訪問用於控制。 1 using UnityEngine; 2 using System.Collections; 3 4 public class joyStickControl
相關文章
相關標籤/搜索