Unity Jak uzyskać atrybuty gameObject

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