Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: che1974 on October 14, 2016, 02:53:40 PM
-
Hi all,
I am new to Playmaker and Unity and need some Help :-)
Have some problems with Game Object Compare.
Set an Array with 12 Objects (6 Pairs) and shuffle them.
I pick 2 Objects (Mouse Pick) and store them in pick1 and pick2 (global).
After i want to compare and if equal destroy them.
(Memory Game)
It will stop at Game_Compare - Frankenstein(Clone) and Frankenstein(Clone).
But why ????
(http://h55i.imgup.net/19c12.PNG)
(http://e38i.imgup.net/28cf6.PNG)
-
Game Object Compare will check if the variable 1 contain the same object as variable 2, but will not check name or instance.
In this situation you can Get Name of game object and compare strings for example.
-
Thanks.
I will test it.
-
Thanks a lot.
Now it works, perfect - you will save my day ;)