// Start is called before the first frame update void Start() { PlayerState playerState = PlayerState.Playing; audio = GetComponent <AudioPlayer>(); hurtShield = GameObject.Find("HurtShield"); hurtFlash = hurtShield.GetComponent <HurtFlash>(); Cooldown = false; Flash = hurtFlash.Flash(); }
public void CacheHurtFlash() { m_hurtFlash = GetComponent <HurtFlash>(); }