Hello ,
It will be safe to access Vector3.Distance from multiple scripts at the same time?
It actually a static method… so I’m little bit confused about this.
Thank you in Advance.
Hello ,
It will be safe to access Vector3.Distance from multiple scripts at the same time?
It actually a static method… so I’m little bit confused about this.
Thank you in Advance.
Yes, it’s just fine!
Can you please detail on what is behind it?
As I know static method cannot duplicated more then 1 copy…
Static methods are troublesome when they modify internal state. Vector3.Distance is a pure function so you cannot possibly break anything.