Y
Y
yraiv2022-02-12 19:47:26
Unity
yraiv, 2022-02-12 19:47:26

How to implement the logic for the tower?

How the logic for the tower is implemented, namely its range. I catch clicks and when it hits the collider, I just make the radius of the tower active (this is a round 2d sprite) and everything seems to be ok, but! if a person clicks on another tower, it will also be active. How to make that if a person chose another, then the previous one turned off?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-02-12
@freeExec

* Turn off learned tower
* Remember turned on tower
* Go to step 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question