New experience system

Doesn't work, branching for later development
This commit is contained in:
Shaun Reed 2017-08-26 23:42:00 -04:00
parent 12775c8ef7
commit b2283462bf
1 changed files with 28 additions and 1 deletions

View File

@ -29,7 +29,21 @@ public class ExperienceBar : MonoBehaviour {
private float barMovement;
private float barPosition;
private float Increment = 10;
private struct levelReqA
{
int levelA;
float expRequiredA;
float clicksRequiredA;
}
private struct levelReqB
{
public int levelB;
public float expRequiredB;
public float clicksRequiredB;
}
// Use this for initialization
void Start () {
fillAmount = 0;
@ -88,4 +102,17 @@ public class ExperienceBar : MonoBehaviour {
Debug.Log("fillAmount = " + fillAmount);
}
private levelReqB LevelRequirement(int level, levelReqB levelB)
{
++level;
levelText.GetComponent<Text>().text = level.ToString();
levelB.expRequiredB = Mathf.Pow(100, 1.05f);
expObtained = 0;
expRequired = Mathf.Pow(expRequired, 1.05f);
}
}