public void UpdateOar(bool left, Vector3 heading) { if (oar != null) { oar.left = left; oar.heading = heading; if (frozenTimeStamp > 0) { if (((int)(Time.time * flashFactor)) % 2 == 1) { oar.GetComponent <SpriteRenderer> ().color = flashColor; } else { oar.GetComponent <SpriteRenderer> ().color = Color.white; } } else { oar.GetComponent <SpriteRenderer> ().color = Color.white; } } }