mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 15:27:59 +01:00
17 lines
361 B
C#
17 lines
361 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Ponies.RisingSun
|
||
|
{
|
||
|
public class FieRisingSunBigLaserUvOffset : MonoBehaviour
|
||
|
{
|
||
|
private float _offsetX;
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
_offsetX -= 1.5f * Time.deltaTime;
|
||
|
GetComponent<Renderer>().material.SetVector("_texUV", new Vector4(_offsetX, 0f, 0f, 0f));
|
||
|
base.transform.Rotate(new Vector3(1f, 0f, 0f));
|
||
|
}
|
||
|
}
|
||
|
}
|