Answer by Mouton
**[Edit:]** Changed the code to match your needs + some further informations below What the OP needs is not comparing if two GameObject references point to the same GameObject but compare if the...
View ArticleAnswer by s.ta.c.
I'm experimenting since morning and these are results I got so far. When you compare two gameobjects directly with "==" operator, it only returns true if they are exactly same object (they must refer...
View ArticleAnswer by Mouton
**[Edit:]** Changed the code to match your needs + some further informations below What the OP needs is not comparing if two GameObject references point to the same GameObject but compare if the...
View ArticleAnswer by s-ta-c
I'm experimenting since morning and these are results I got so far. When you compare two gameobjects directly with "==" operator, it only returns true if they are exactly same object (they must refer...
View Article