AutoRotate.cs 1011 B

1234567891011121314151617181920212223
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. using UnityEngine;
  10. namespace NRKernal.NRExamples
  11. {
  12. /// <summary> An automatic rotate. </summary>
  13. public class AutoRotate : MonoBehaviour
  14. {
  15. /// <summary> Updates this object. </summary>
  16. void Update()
  17. {
  18. transform.Rotate(Vector3.up, 1f);
  19. }
  20. }
  21. }