public IEnumerator CanDamage() { GetComponent <MeshRenderer>().material.color = Color.red; while (damageStep < 25) { damageStep++; shootController.Scaler(_transform, -0.02f); yield return(new WaitForSeconds(0.01f)); } GetComponent <MeshRenderer>().material.color = normalColor; coroutine = null; }