123456789101112131415161718 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RotateParticles : MonoBehaviour
- {
- public float rotationSpeed = 1.0f;
- private ParticleSystem particles;
- void Start()
- {
- particles = GetComponent<ParticleSystem>();
- }
- void Update()
- {
- Quaternion rotation = Quaternion.Euler(0.0f, 0.0f, Time.time * rotationSpeed);
- particles.transform.rotation = rotation;
- }
- }
|