//顯示選單 //透過Enemy選單傳到使用者前面 protected void ShowDialog() { //傳送到頭盔前面 _stageController._cameraRig.GetComponent <SteamVR_CharacterController>().ShowUI(_nowUsePaneUI.gameObject); //初始化 _nowUsePaneUI.Initialize(); //註冊事件 _nowUsePaneUI._modelChanged += new DialogUI.ModelChangedEventHandler(OnPanelChange); _nowUsePaneUI._modelPressSelect += new DialogUI.ModelPressSelect(OnPanelSelect); _nowUsePaneUI._modelPressCancel += new DialogUI.ModelPressCancel(OnPanelCancel); //然後加上collison ,才能被感應到 AddPanel(_nowUsePaneUI.gameObject); }