Answer by m50
you can make a collider around the trader, and then on every time hes in the trigger (make the collider a trigger) using OnTrigger() check if the tag is "Trader" and then if he presses E (or w/e...
View ArticleAnswer by Ashkan_gc
just to make the m50's answer easier to understand. you can use Physics.Raycast to shoot a ray in a direction and see if it collides with anything then based on the name or tag of the other GameObject...
View ArticleAnswer by m50
you can make a collider around the trader, and then on every time hes in the trigger (make the collider a trigger) using OnTrigger() check if the tag is "Trader" and then if he presses E (or w/e...
View ArticleAnswer by Ashkan_gc
just to make the m50's answer easier to understand. you can use Physics.Raycast to shoot a ray in a direction and see if it collides with anything then based on the name or tag of the other GameObject...
View Article
More Pages to Explore .....