Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

Are there differences between initializing at start and at declaration part

$
0
0
What are the differences between private Rigidbody rb { get { return GetComponent (); } set { rb = value; } } and private Rigidbody rb; void Start () { rb = GetComponent(); } They do pretty much the same, or not? Which you prefer and why?

Viewing all articles
Browse latest Browse all 215

Trending Articles



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