Пример #1
0
    public static PrefabMessageSystem Create(Messages message, UITable parent, UIAnchor[] leftRight)
    {
        GameObject row = (GameObject)GameObject.Instantiate(Resources.Load("Prefabs/HeaderMenu/Message/ProfileMessageSystemPrefab"));

        row.transform.parent        = parent.transform;
        row.transform.localPosition = Vector3.zero;
        row.transform.localScale    = Vector3.one;
        PrefabMessageSystem item = row.GetComponent <PrefabMessageSystem>();

        item.SetData(message);

        return(item);
    }
Пример #2
0
 void DrawMessageSystem(Messages mess)
 {
     lstObjMessageSystem.Add(PrefabMessageSystem.Create(mess, gridMessageSystem, leftRight).gameObject);
 }