FiE-Game/src/TwilightMagicSphereNormal.cs

18 lines
340 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
public class TwilightMagicSphereNormal : MonoBehaviour
{
private float angle;
private void Start()
{
}
private void Update()
{
angle += 0.9f * Time.deltaTime;
angle = Mathf.Repeat(angle, 1f);
base.gameObject.GetComponent<Renderer>().material.SetTextureOffset("_BumpMap", new Vector2(0f - angle, 1f));
}
}