mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 15:27:59 +01:00
16 lines
325 B
C#
16 lines
325 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Ponies.Twilight
|
||
|
{
|
||
|
public class FieTwilightForceFieldUvOffset : MonoBehaviour
|
||
|
{
|
||
|
private float _offsetX;
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
_offsetX += 0.4f * Time.deltaTime;
|
||
|
GetComponent<Renderer>().material.SetTextureOffset("_Gradient_Edge_Fake", new Vector2(_offsetX, 0.65f));
|
||
|
}
|
||
|
}
|
||
|
}
|