Example #1
0
 void UpdateHearts()
 {
     if (lastHitTime != 0 && Time.time - lastHitTime < showHeartTime)
     {
         hearts.Show();
     }
     else
     {
         hearts.Hide();
     }
 }