Комментарии:
Wow, this is really good.
ОтветитьYou are the best! Love your work. Very usefull for me at this moment. Regards from Uruguay! Thanks.
Ответитьthis made no sense
ОтветитьThe last 4 minutes is really confusing, so let me attempt to summarize: When you are the host, and you click on your own card, the code checks to see if you have authority and since you do, it sends the debug message "Targeted by self!" to your instance of Unity. When you click on someone else's card (the opponent), then the code checks to see if you have authority and since you don't, it will send the debug message by first checking whose client brought that gameObject into existence (the opponent) and send the message "Targeted by other!" to that client's instance of Unity.
This is why you don't see the message "Targeted by other!" when you click on your opponent's cards - it is because your client (instance of unity) didn't create the cards; however, you do see the message when the opponent clicks on your cards.