FiE-Game/Assets/Scripts/Fie/Ponies/Fie.Ponies.RisingSun/FieRisingSunForceFieldUvOffset.cs

16 lines
327 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
namespace Fie.Ponies.RisingSun
{
public class FieRisingSunForceFieldUvOffset : MonoBehaviour
{
private float _offsetX;
private void Update()
{
_offsetX += 0.4f * Time.deltaTime;
GetComponent<Renderer>().material.SetTextureOffset("_Gradient_Edge_Fake", new Vector2(_offsetX, 0.65f));
}
}
}