Ejemplo n.º 1
0
    void instantPrefab(Transform Master, int i, string name, string id)
    {
        GameObject      placeholder = Instantiate(Prefabs, new Vector3(Master.position.x + 100, Master.position.y - 30 - i * 50, 0), Quaternion.identity);
        TextMeshProUGUI TMP         = placeholder.GetComponent <TextMeshProUGUI>();

        TMP.text = name;
        placeholder.transform.SetParent(Master);
        IndividualCard temp = placeholder.GetComponent <IndividualCard>();

        temp.SetID(id);
        temp.SetPanel(AddContactsPanel, ContactListPage);
    }