From b2283462bf1b7cbc1648f0ded12eee7aa89281ca Mon Sep 17 00:00:00 2001 From: Shaun M Reed Date: Sat, 26 Aug 2017 23:42:00 -0400 Subject: [PATCH] New experience system Doesn't work, branching for later development --- Assets/Scripts/ExperienceBar.cs | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/ExperienceBar.cs b/Assets/Scripts/ExperienceBar.cs index a35c851..b4c86c8 100644 --- a/Assets/Scripts/ExperienceBar.cs +++ b/Assets/Scripts/ExperienceBar.cs @@ -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 = level.ToString(); + levelB.expRequiredB = Mathf.Pow(100, 1.05f); + expObtained = 0; + + + + expRequired = Mathf.Pow(expRequired, 1.05f); + + } + }