RotateObject.cs 371 B

12345678910111213141516171819
  1. using UnityEngine;
  2. namespace HorizonBasedAmbientOcclusion
  3. {
  4. public class RotateObject : MonoBehaviour
  5. {
  6. // Use this for initialization
  7. void Start()
  8. {
  9. }
  10. // Update is called once per frame
  11. void Update()
  12. {
  13. transform.Rotate(Vector3.up * Time.deltaTime * 15.0f, Space.World);
  14. }
  15. }
  16. }