Exemple #1
0
 public static void Hurt()
 {
     --instance.health;
     if (instance.health < 0)
     {
         if (instance.score <= 0)
         {
             instance.screenFader.Fade(() => { SceneManager.LoadScene("Reload"); });
         }
         else
         {
             instance.inputGroup.interactable = true;
             instance.StartCoroutine(HitchLib.Tweening.GenericTween(
                                         t => { instance.inputGroup.alpha = t; }, 0, 1, 0.5f, HitchLib.Easing.EASE_QUAD_IN));
         }
     }
 }