Example #1
0
    // 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();
    }
Example #2
0
 public void CacheHurtFlash()
 {
     m_hurtFlash = GetComponent <HurtFlash>();
 }