|
I am making a mini game similar to many facebook games where you click a button a number of times and a bar fills up, where at the end, you get a prize and complete that level of mastery. UPDATE: the progress gets past bronze, but silver goes over 100%. Can someone come to my aid? return _adjust; } string CalculateMastery(int Mastery){ if (Mastery==10) Level="Bronze"; else if (Mastery==8) Level="Silver"; else if(Mastery==5) Level="Gold"; else if(Mastery==4) Level="Platinum"; return Level; } }
(comments are locked)
|
|
I thought I would share my joy. It is now working. public Texture2D _barTexture; public Texture2D _barBorder; public int _fullbar; public int _adjust; private int Mastery; private string Level; private float fillProgress; private bool showButton; return _adjust; } string CalculateLevel(int Mastery){ if(Mastery==10){ Level="Bronze"; } if(Mastery==8){ Level="Silver"; } if(Mastery==6){ Level="Gold"; } if(Mastery==4){ Level="Platinum"; } fillProgress=0; _adjust=0; return Level; } }
(comments are locked)
|

@Gilead, you should probably post your solution as an answer and then accept that answer (using the checkmark). This will mark this question as solved, so nobody else thinks you need help on this issue!
Thanks You! The script is progressing, but aid is still needed.