Hi I am a bit confused how to check if a tile is occupied. Is there a simple way to check if there is a link between objects? I am trying to instantiate different things to tiles but I want to make sure there’s not a player or object already on these tiles. I was hoping I could use OnNodeCostCallback but I can’t figure out how to use that as the callback when I use IncludeCentralNode.
validBuildNodes = map.NodesAround<SceneMapTile>(movementSelector.tile, false, true, null);
I can’t fiigure out how to use callbacks properly, I tried using OnNodeCostCallback in place of null but it isn’t allowed. It seems you can only use OnNodeCostCallback when you specificy an radius? I was trying to check the central node which is the index of 0 in the list but I can’t use OnNodeCostCallback this way so it won’t check if its valid or not, any thoughts would be truly helpful, thank you!