Show the characteristics of a player by clicking on it
Hi! I’m doing a 2D game where I would like to click on two different characters and tell which one is stronger. I wanted to have a separated game object to detect my clicks so a created a click manager that identifies a game object when I click on it. I just can’t find out how I should do to select two characters and then call a fonction to compare them. - I tried to do this selection process within the click manager but it is awful because it creates a piece of code in the update only to find out if two characters gameObjects have been selected. - And even by doing this (it actually works), I still don’t know how to say that I want my character.strengh variable because I only have access to a game object....
I don’t know if I was clear t.t I am pretty lost hahaha