Compare commits

...

1 Commits

Author SHA1 Message Date
Shaun Reed b2283462bf New experience system
Doesn't work, branching for later development
2017-08-26 23:42:00 -04:00
1 changed files with 28 additions and 1 deletions

View File

@ -29,7 +29,21 @@ public class ExperienceBar : MonoBehaviour {
private float barMovement; private float barMovement;
private float barPosition; private float barPosition;
private float Increment = 10; 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 // Use this for initialization
void Start () { void Start () {
fillAmount = 0; fillAmount = 0;
@ -88,4 +102,17 @@ public class ExperienceBar : MonoBehaviour {
Debug.Log("fillAmount = " + fillAmount); 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);
}
} }