You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/Gameplay/VFX/SpeedWindEffect.cs

31 lines
796 B
C#

3 months ago
using D2D.Core;
using D2D.Gameplay;
using UnityEngine;
namespace D2D
{
public class SpeedWindEffect : GameStateMachineUser
{
[SerializeField] private float _defaultRateOverTime = 10;
// private PlayerMovement _playerMovement;
private ParticleSystem _particleSystem;
private void Start()
{
// _playerMovement = FindObjectOfType<PlayerMovement>();
_particleSystem = GetComponent<ParticleSystem>();
}
private void Update()
{
var emissionModule = _particleSystem.emission;
// emissionModule.rateOverTime = _defaultRateOverTime * _playerMovement.speedFactor;
}
protected override void OnGameFinish()
{
Destroy(gameObject);
}
}
}