Ejemplo n.º 1
0
 // Update is called once per frame
 public bool ReduceLife(GameObject collider)
 {
     life--;
     ReColorHeart();
     if (life == 0)
     {
         gameManager.pc.EnableDeathParticle();
         gameManager.isPlayable = false;
         gameManager.GameEnd();
         collider.SetActive(false);
         return(true);
     }
     return(false);
 }