Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (damageOn)
     {
         if (Input.GetKeyDown(watchCodes[0]))
         {
             status.DecreaseStat(20, "Health");
         }
         else if (Input.GetKeyDown(watchCodes[1]))
         {
             status.DecreaseStat(10, "Health");
         }
     }
 }
Ejemplo n.º 2
0
 public bool execute()
 {
     if (increase)
     {
         bars.IncreaseStat(amt, stat);
     }
     else
     {
         bars.DecreaseStat(amt, stat);
     }
     return(true);
 }