Exemplo n.º 1
0
 /// <summary>
 /// 逆の手を削除するかチェック
 /// </summary>
 /// <param name="_hand">現在所持中の手</param>
 public override void CheckDelete(HandMaster _hand)
 {
     // 逆の手の武器も削除する
     if (_hand.myTouch == OVRInput.RawButton.LHandTrigger)
     {
         myHand[0].DeleteWeapon();
     }
     else if (_hand.myTouch == OVRInput.RawButton.RHandTrigger)
     {
         myHand[1].DeleteWeapon();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 逆の手の設定
        /// </summary>
        /// <param name="_hand">現在所持中の手</param>
        /// <param name="_weapon">武器オブジェクト</param>
        public override void SetOpposite(HandMaster _hand, GameObject _weapon)
        {
            // nullチェック
            if (_weapon == null)
            {
                return;
            }

            // 逆の手に武器を装備する
            if (_hand.myTouch == OVRInput.RawButton.LHandTrigger)
            {
                myHand[0].SetWeapon(_weapon);
            }
            else if (_hand.myTouch == OVRInput.RawButton.RHandTrigger)
            {
                myHand[1].SetWeapon(_weapon);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 削除チェック
 /// </summary>
 /// <param name="_hand">利き手</param>
 public virtual void CheckDelete(HandMaster _hand)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// 反対の手の設定
 /// </summary>
 /// <param name="_hand">利き手</param>
 /// <param name="_weapon">武器</param>
 public virtual void SetOpposite(HandMaster _hand, GameObject _weapon)
 {
 }