FiE-Game/Assets/Scripts/TwilightMagicSphere.cs

15 lines
277 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
2018-11-21 21:16:20 +01:00
public class TwilightMagicSphere : MonoBehaviour {
private float angle;
2018-11-20 20:10:49 +01:00
2018-11-21 21:16:20 +01:00
private void Start() {
}
2018-11-20 20:10:49 +01:00
2018-11-21 21:16:20 +01:00
private void Update() {
angle += 60f * Time.deltaTime;
transform.rotation = Quaternion.AngleAxis(angle, Vector3.up);
}
2018-11-20 20:10:49 +01:00
}