public void LevelUp() { level++; currentExp -= maxExp; expAdd = Mathf.RoundToInt(expAdd * 1.15f); maxExp = Mathf.RoundToInt(maxExp * 1.5f); if (level == 5) { if (cScript != null) { cScript.SetQuestActive("QU01"); } else { print("Control Script not properly accessed"); cScript = Control_Script.controlObj.GetComponent <Control_Script> (); if (cScript != null) { cScript.SetQuestActive("QU01"); } else { print("Control Script not able to be accessed"); } } } }