r2mods/ilspy_dump/ror2_csproj/ScaleProjector.cs

20 lines
290 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
public class ScaleProjector : MonoBehaviour
{
private Projector projector;
private void Start()
{
projector = GetComponent<Projector>();
}
private void Update()
{
if ((bool)projector)
{
projector.orthographicSize = base.transform.lossyScale.x;
}
}
}