For properties, layer
needs gameObject
to precede it but transform
doesn't.
For methods, SetActive()
needs gameObject
to precede it but GetComponent<T>()
doesn't.
Second question: is there a convention to use gameObject.[method/property name]
at times instead of only writing [method/property name]
(when appropriate)?