SimpleRotator.cs 226 B

12345678910111213
  1. using System;
  2. using UnityEngine;
  3. namespace TriLib.Samples
  4. {
  5. public class SimpleRotator : MonoBehaviour
  6. {
  7. protected void Update()
  8. {
  9. base.transform.Rotate(-10f * Time.deltaTime, -10f * Time.deltaTime, 0f);
  10. }
  11. }
  12. }