Quantcast
Channel: Answers for "How to get script components in multiple gameobjects C#"
Viewing all articles
Browse latest Browse all 4

Answer by PeterDC

$
0
0

Instead of using public use static; that should keep your variable the same value in all instances of the script.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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