r2mods/ilspy_dump/ror2_csproj/Visualizer.cs

23 lines
383 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
public class Visualizer : MonoBehaviour
{
public float yscale;
public GameObject particleObject;
public float yvalue;
private Vector3 initialPos;
private void Start()
{
initialPos = particleObject.transform.localPosition;
}
private void Update()
{
particleObject.transform.localPosition = initialPos + new Vector3(0f, yvalue / yscale, 0f);
}
}