FiE-Game/Assets/Scripts/TwilightMagicSphere.cs

15 lines
277 B
C#
Raw Normal View History

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