Exemplo n.º 1
0
 public void DropSanity(float val)
 {
     SanityVal -= sanityDropAmount * val;
     sanityBar.transform.localScale = new Vector3(SanityVal, 1.0f, 1.0f);
     if (SanityVal <= 0)
     {
         songPlayer.GameOver();
     }
 }