public void CreatePengayaan(PengayaanData Text) { GameObject obj = Instantiate(pengayaan_perf, content.transform); obj.GetComponent <Pengayaan_OBJ> ().Initialize(Text); obj.transform.localPosition = Vector3.zero; obj.transform.localScale = Vector3.one; }
// Start is called before the first frame update public void Initialize(PengayaanData data) { textUI.text = data.text; this.tittle.text = data.tittle.ToUpper(); }