A
A
ase20152019-04-14 16:27:32
C++ / C#
ase2015, 2019-04-14 16:27:32

How to make number reduction?

How to make it so that when I clicked up to 1 thousand, it was shown not like this: "1000 $", but like this: "1k $"
here is the code:

public Text scoreText;
private int score;
public void OnClick()
    {
        score++;
        scoreText.text = "$"+score ;
            

    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-04-14
@ase2015

Divide score by 1000.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question