r2mods/ilspy_dump/ror2_csproj/ScaleProjector.cs

20 lines
290 B
C#

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;
}
}
}