feat: polish VR gameplay and sync tools
This commit is contained in:
@@ -39,6 +39,11 @@ namespace VRBeats
|
||||
|
||||
if (Cut(info.hitPoint, cutDir, insideMaterial))
|
||||
{
|
||||
Color trailColor = beatCube != null
|
||||
? VR_BeatManager.instance.GetColorFromColorSide(beatCube.ThisColorSide)
|
||||
: Color.white;
|
||||
Vector3 saberUp = beatDamageInfo.hitObject != null ? beatDamageInfo.hitObject.transform.up : cutDir;
|
||||
SliceTrailEffect.Spawn(info.hitPoint, info.hitDir, saberUp, trailColor);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user