IEnumerator objShake() { while (OmniShake.ObjShake(transform) == 1) { yield return(0); } OmniShake.Stop(transform); Destroy(this); }