Hello All,
Okay, I am not able to figure out something as basic as
Game Object Compare action.
PLEASE REFER TO IMAGE ATTACHEDContext:A 3d point and click game, when we click on a hotspot the camera tweens to that location. I call this location NODE(prefab).
I have a Global Variable 'Current_Node' of type 'gameObject' (Node) to keep track of Player location. Right now it updates just fine as I move the Player from node to node as I click on them. I can actually see it updating whenever I hop from one Node to another.
Goal:I need to activate a collider on a white button on the 'Node:Hawk'
Problem:'Game Object Compare' doesn't seem to work the way I expect.
May be I am missing something very basic here or may be I am using it wrong.
On the 'SwitchGeo' fsm I am using this action on state1. I am trying to compare the 'current node' with the 'Node:Hawk'. Both these are of gameobject type.
When I arrive at Node:Hawk, the global 'Current_Node' corresponds to it.
Although, inside 'Game Object Compare action, the bool 'isCurrent' never flips to true and the event 'activateButtonCollider' doesn't fire.I have tried 'Game Object Compare' in other situations and managed to NEVER get it to work.
Please Help, may be I am using it in a wrong way?