private void Update() { if (Input.GetKeyDown(KeyCode.L)) { Debug.Log("Pressed L " + index + ", " + pClass.allPerks.Count); if (index < pClass.allPerks.Count) { bool succ = pClass.TakePerk(pClass.allPerks[index]); if (succ) { Debug.Log("Success on Take Perk " + index); ++index; } else { Debug.Log("Fail on Take Perk " + index); } } } if (Input.GetKeyDown(KeyCode.Backslash)) { Debug.Log("Pressed Page UP, applying 300 exp"); pClass.ApplyExp(300); } if (Input.GetKeyDown(KeyCode.Backspace)) { Debug.Log("Pressed Page DOWN, Increasing Age"); pClass.IncreaseAge(); } }