I have a question about selecting an item. I want to create a system.And this system will start like that. I have two squares and one button. When I click a button and which square is selected, this square will be moving.
For example, I've selected the first square and I've clicked the button.The first square will be moving.This is a simple question but I want to create without if-else structure.
For example, When I've selected the first square, program can understand the first square is selected and when I click the button, program will start and which square is selected, this square will move.