Пример #1
0
    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;
    }
Пример #2
0
 // Start is called before the first frame update
 public void Initialize(PengayaanData data)
 {
     textUI.text      = data.text;
     this.tittle.text = data.tittle.ToUpper();
 }