public override void OnEnter() { if (flasher) { flasher.SetFlashing(setFlashing); } Finish(); }
// Update is called once per frame void Update() { if (!_health || !_flasher) { return; } _flasher.SetFlashing(_health.IsInvulnerable); }
void BeginFlashing() { flasher?.SetFlashing(true); }