Distance indicator is mostly accurate with a 2.8x scale multiplier

This commit is contained in:
2024-10-22 13:02:35 -07:00
parent 80e63019ed
commit 175dbbe7c5
3 changed files with 8 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ using UnityEngine;
public class DistanceIndicator : MonoBehaviour
{
public float multiplier;
Teo player;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
@@ -13,6 +14,6 @@ public class DistanceIndicator : MonoBehaviour
void Update()
{
Debug.Log(player.swingDistance);
transform.localScale = new Vector3 (player.swingDistance*0.2F, player.swingDistance*0.2F, 1);
transform.localScale = new Vector3 (player.swingDistance*multiplier, player.swingDistance*multiplier, 1);
}
}