JohnCorby 53dd88584b Revert "reformat again"
This reverts commit 93d82358
2022-05-22 18:55:27 -07:00

25 lines
628 B
C#

using UnityEngine;
namespace NewHorizons.Components.SizeControllers
{
public class SizeController : MonoBehaviour
{
public AnimationCurve scaleCurve;
public float CurrentScale { get; protected set; }
public float size = 1f;
protected void FixedUpdate()
{
if(scaleCurve != null)
{
CurrentScale = scaleCurve.Evaluate(TimeLoop.GetMinutesElapsed()) * size;
}
else
{
CurrentScale = size;
}
base.transform.localScale = Vector3.one * CurrentScale;
}
}
}