Answer the question
In order to leave comments, you need to log in
How can I make random numbers through a sprite?
public TextMesh tm;
Rigidbody2D rb;
void Start ()
{
rb = GetComponent<Rigidbody2D>();
tm = GameObject.Find("numBug").GetComponent<TextMesh>();
tm.text = Random.Range(1, 255);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question