i have a game that supports touch input and mouse click from a computer input. i am trying to now also implement an AR mode and the only thing i am stuck on is making this function also execute the same way for my AR mode.
I want the function to execute if a gameObject called "Sphere" collides with it (there is a wand for the AR mode and a sphere object with a collider appears on the board to represent the tip of the wand and you can move it around and it shows it correctly and it also recognizes when it collides with the objects that i need it to just fine with OnTriggerEnter) so this should be super hard i just dont know how to make this same function to happen when the game object called "Sphere" collides with the object.
These functions are attached to the game manager. In the game you roll the dice and the game manager spawns the ghost prefabs in all the spots you can go and then you click on the ghost that is on top of the spot you want to move to and the player will walk over to that spot and the ghosts get destroyed and the next player then rolls for their turn. (for some context)