CautionTurning.cs 550 B

123456789101112131415161718
  1. // /******************************************************************************
  2. // * File: CautionTurning.cs
  3. // * Copyright (c) 2023 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.
  4. // *
  5. // *
  6. // ******************************************************************************/
  7. using UnityEngine;
  8. public class CautionTurning : MonoBehaviour
  9. {
  10. [SerializeField, Range(0,10)] private float timeScale = 1f;
  11. private void Update()
  12. {
  13. transform.Rotate(Vector3.up, Time.deltaTime * timeScale);
  14. }
  15. }