/// <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(); } }
/// <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); } }
/// <summary> /// 削除チェック /// </summary> /// <param name="_hand">利き手</param> public virtual void CheckDelete(HandMaster _hand) { }
/// <summary> /// 反対の手の設定 /// </summary> /// <param name="_hand">利き手</param> /// <param name="_weapon">武器</param> public virtual void SetOpposite(HandMaster _hand, GameObject _weapon) { }