public void OnGainHealth(InputValue button)
        {
            Debug.Log("Gain Health");

            playerStats.SetHealth(20);
            playerStats.setMoney(20);
        }
예제 #2
0
 public void OnHeal(InputValue button)
 {
     if (amountBandages > 0)
     {
         Debug.Log("Healing");
         playerStats.SetHealth(40);
         setBandages(-1);
     }
 }
예제 #3
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         Debug.Log("Ow");
         playerStats.SetHealth(-6);
         DestroyProjectile();
     }
     else
     {
         DestroyProjectile();
     }
 }