Commit cc509725 by Raphael

distance OK

parent f014ca8d
...@@ -24,7 +24,8 @@ public class UIController : MonoBehaviour ...@@ -24,7 +24,8 @@ public class UIController : MonoBehaviour
void Update () void Update ()
{ {
var score = _player.Score + int.Parse(Distance.text); Distance.text = (int.Parse(Distance.text) + 1).ToString();
int score = _player.Score + int.Parse(Distance.text) / 5;
Score.text = (_player.Score + score).ToString(); Score.text = (_player.Score + score).ToString();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment