FogDoTween.cs 424 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /* 组件-雾霾缓动 */
  5. public class FogDoTween : MonoBehaviour
  6. {
  7. Vector3 eularAngles;
  8. void Start()
  9. {
  10. this.eularAngles = this.transform.eulerAngles;
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. eularAngles.y += Time.deltaTime;
  16. this.transform.eulerAngles = eularAngles;
  17. }
  18. }