Unity How Get Attributs of a gameObject

GameObject obj;
var i = obj.GetComponent<NameScript>();
i.NameOfAttributeLikeThis;
Henks Cane