Seeing the explanation "Compares the parameter node to the receiving node." and the name of function, it sounds like " comparing the receiver with the parameter node".
However, "
true
if the node is a descendant of the parent
node; otherwise false
." down the description gives me different thought about it that it exists to check if the parameter node is a child node of the receiver.I couldn't get it right just by seeing the explanation: it is not clear.
Here it goes the link I'm refer to
https://developer.apple.com/documentation/spritekit/sknode/1483078-isequal
I'm very confused at the description isEqual(to node: SKNode) -> Bool
Do anyone give me a clear explanation about this?
Thanks in advance.