L
L
Layen2017-10-08 17:39:57
Unity
Layen, 2017-10-08 17:39:57

Who can help with a small project like Keyboard Trainer?

I want to write a small project on Unity, but something somehow doesn't work. It can be called as a keyboard trainer. 33 sprites randomly appear on the screen (not immediately), each sprite is assigned a key on the keyboard, if at the moment a certain sprite was on the screen the desired button was pressed (that is, previously assigned to it), then this sprite is replaced with another one (already with another key). If the player manages to press the desired button in the allotted time, then everything repeats; if, the player did not have time, then he loses. At the moment I only have a List( with sprites) and
a Dictionary( with buttons)
public List sprites = new List();
public Dictionary dict = new Dictionary();
dict.Add(KeyCode.Q,sprites[0]);

Maybe someone will help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2017-10-09
@Layen

Store the status in a regular array for each object on the screen (sprite).
And work with the array data, not with the screen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question