Compare commits
1 Commits
master
...
ExpProgres
Author | SHA1 | Date |
---|---|---|
Shaun Reed | b2283462bf |
|
@ -30,6 +30,20 @@ public class ExperienceBar : MonoBehaviour {
|
||||||
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue