Exemplo n.º 1
0
 public void UseBlood(int a)
 {
     BloodAmount -= a;
     //TO-DO: spawn some blood stain effect or somthing and slite cam shake
     UpdateBlooBag();
     for (int i = 0; i < 5; i++)
     {
         GameObject bd = Instantiate(BloodDropPrefab, this.transform.position, Quaternion.identity);
         float      r  = Random.Range(-360, 360);
         bd.transform.localEulerAngles = new Vector3(0, 0, r);
     }
     if (BloodAmount <= 0)
     {
         Debug.Log("player dead, you bleed out");
         this.gameObject.SetActive(false);
         GameManagScript.GameOver("Game Over", "You bleed out");
     }
 }
Exemplo n.º 2
0
 public void BecomeVampire()
 {
     _gameManangerScript.GameOver("Victory!",
                                  "You are now a creature of the night, \n and you thought you where depende on blood before");
     PlayBuySound();
 }