Browse Source

New experience system

Doesn't work, branching for later development
ExpProgression
Shaun Reed 5 years ago
parent
commit
b2283462bf
  1. 29
      Assets/Scripts/ExperienceBar.cs

29
Assets/Scripts/ExperienceBar.cs

@ -29,7 +29,21 @@ public class ExperienceBar : MonoBehaviour { @@ -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 { @@ -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);
}
}

Loading…
Cancel
Save