Quantcast
Channel: Answers by "Kleptomaniac"
Viewing all articles
Browse latest Browse all 90

Answer by Kleptomaniac

$
0
0
This is not the correct way to format that conditional. Unless I'm mistaken, the only syntactically correct way to accomplish what you want is like this: if (Vector3.Distance(playerTransform.position, button1Transform.position) <= distToOpen || Vector3.Distance(playerTransform.position, button2Transform.position) <= distToOpen) { Hope that helps, Klep

Viewing all articles
Browse latest Browse all 90

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>