Skip to content

Commit

Permalink
Fixed bad patterns, that the github-actions-bot detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
lilSander committed Oct 10, 2024
1 parent 6625395 commit 596a341
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion Assets/SEE/Controls/Actions/AcceptDivergenceAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ public override bool Update()
}
else
{
// FIXME: Needs adaptation for VR where no mouse is available.
if (Input.GetMouseButtonDown(0)
&& Raycasting.RaycastGraphElement(
out RaycastHit raycastHit,
Expand Down
6 changes: 3 additions & 3 deletions Assets/SEE/XR/RadialSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public void SelectAction(int i)
{
if (actionObject != null)
{
Destroy(actionObject);
Destroyer.Destroy(actionObject);
}
actionObject = PrefabInstantiator.InstantiatePrefab("Prefabs/Dial").transform.gameObject;
actionObject.transform.position = handTransform.position;
Expand Down Expand Up @@ -380,7 +380,7 @@ public void SpawnRadialPart()

foreach (GameObject item in spawnedParts)
{
Destroy(item);
Destroyer.Destroy(item);
}

spawnedParts.Clear();
Expand All @@ -397,7 +397,7 @@ public void SpawnRadialPart()
spawnRadialPart.GetComponent<Image>().fillAmount = (1 / (float)numberOfRadialPart) - (angleBetweenPart / 360);
if (i > (numberOfRadialPart / 2))
{
spawnRadialPart.gameObject.transform.Find("TextField").gameObject.MustGetComponent<RectTransform>().rotation =
spawnRadialPart.gameObject.transform.Find("TextField").gameObject.MustGetComponent<RectTransform>().rotation =
spawnRadialPart.gameObject.transform.Find("TextField").gameObject.MustGetComponent<RectTransform>().rotation * Quaternion.Euler(0, 0, 180);
spawnRadialPart.gameObject.transform.Find("TextField").gameObject.MustGetComponent<TextMeshProUGUI>().alignment = TextAlignmentOptions.Right;
}
Expand Down
3 changes: 2 additions & 1 deletion Assets/SEE/XR/Rotator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using SEE.Controls.Actions;
using SEE.Utils;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Interactables;
Expand Down Expand Up @@ -82,7 +83,7 @@ void Update()
{
if (GlobalActionHistory.Current() != ActionStateTypes.Rotate)
{
Destroy(gameObject);
Destroyer.Destroy(gameObject);
}
if (shouldGetHandRotation)
{
Expand Down

0 comments on commit 596a341

Please sign in to comment.