private IEnumerator ChangeColor()
{
for (float t = 0; t < 1; t += Time.deltaTime)
{
_playerMaterial.color = Color.Lerp(_startColor, _effectColor, _curve.Evaluate(t));
yield return null;
}
_playerMaterial.color = _startColor;
}