Tanoda
EasyRotator.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
5
6public class EasyRotator : MonoBehaviour
7{
8 public UnityEvent delayedEvent = new UnityEvent();
9 public Vector3 axisSpeed = Vector3.zero;
10
11 IEnumerator Start()
12 {
13 yield return new WaitForSeconds(1.5f);
14 delayedEvent.Invoke();
15 }
16
17 protected void Update ()
18 {
19 transform.Rotate(axisSpeed);
20 }
21}
Vector3 axisSpeed
Definition: EasyRotator.cs:9
void Update()
Definition: EasyRotator.cs:17
UnityEvent delayedEvent
Definition: EasyRotator.cs:8