mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-25 23:17:58 +01:00
14 lines
349 B
C#
14 lines
349 B
C#
using UnityEngine;
|
|
|
|
public class TwilightMagicSphereNormal : MonoBehaviour {
|
|
private float angle;
|
|
|
|
private void Start() {
|
|
}
|
|
|
|
private void Update() {
|
|
angle = Mathf.Repeat(angle + 0.9f * Time.deltaTime, 1f);
|
|
|
|
gameObject.GetComponent<Renderer>().material.SetTextureOffset("_BumpMap", new Vector2(0 - angle, 1));
|
|
}
|
|
}
|