private void UpdateRemoteDashVelocity()
{
RemoteDashVelocity = Vector3.Lerp(RemoteDashVelocity, Vector3.zero, 1f - Mathf.Pow(0.001f, Time.deltaTime));
Color color = dashEffectRenderer.material.GetColor("_TintColor");
if(RemoteDashVelocity.magnitude > Mathf.Epsilon)
{
color.a = RemoteDashVelocity.magnitude / 5f;
dashEffectPivot.LookAt(transform.position + RemoteDashVelocity.normalized);
}
else
{
color.a = 0;
}
dashEffectRenderer.material.SetColor("_TintColor", color);
}