FogDoTween.cs 399 B

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