Example #1
0
 void LateUpdate()
 {
     rangedAttack.LateUpdate();
     if (PlayerRender.color == Color.red && health > 0 && redTime < Time.time)
     {
         PlayerRender.color = Color.white;
     }
 }
Example #2
0
 void LateUpdate()
 {
     rangedAttack.LateUpdate();
     if (health <= 0)
     {
         StartCoroutine(DeathSequence());
     }
 }