Replace UltimateXR with HurricaneVR

This commit is contained in:
2024-08-08 17:01:07 +02:00
parent e8658374d6
commit fb21dbbb73
5932 changed files with 358362 additions and 2174150 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections;
using UnityEngine;
using UnityEngine.Events;
namespace HurricaneVR.Framework.Weapons.Guns
{
public class HVRGunBolt : HVRGunPart
{
public bool IsPushedBack { get; set; }
private void Awake()
{
}
public void Move(float percent)
{
if (float.IsNaN(percent))
return;
transform.localPosition = Vector3.Lerp(ForwardPosition, BackwardPosition, percent);
}
public virtual void PushBack()
{
transform.localPosition = BackwardPosition;
IsPushedBack = true;
}
public override void Animate(float percent, CycleDirection direction)
{
Move(percent);
}
}
}