public IEnumerator SetAberrationCo(SetAberrationEvent e) { aberration.amount = e.strenght; yield return(new WaitForSeconds(e.duration)); aberration.amount = 0.1f; }
void SetAberration(SetAberrationEvent e) { StartCoroutine("SetAberrationCo", e); }