// 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"); } } }
public bool execute() { if (increase) { bars.IncreaseStat(amt, stat); } else { bars.DecreaseStat(amt, stat); } return(true); }