ArrowCircleGlobalSpeed.cs 505 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ArrowCircleGlobalSpeed : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. public ArrowCircleMotion[] arrowCircleMotions;
  8. public float Speed = 10f;
  9. void Start()
  10. {
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. foreach (var item in arrowCircleMotions)
  16. {
  17. item.speed = Speed;
  18. }
  19. }
  20. }