Beispiel #1
0
    public bool AddProfile(string book)
    {
        GameObject newprofile          = Instantiate(m_profilePrefab);
        ProfileButtonController script = (ProfileButtonController)newprofile.GetComponent(typeof(ProfileButtonController));

        script.SetButtonText(book, false);
        //script.AddBook("Default");
        newprofile.transform.SetParent(gameObject.transform, false);
        return(false);
    }
Beispiel #2
0
    public void AddProfileToList(UserProfile profile)
    {
        if (profile != null)
        {
            ProfileButtonController profileButton =
                Instantiate <ProfileButtonController>
                    (ProfileButtonPrefab, IsProfilesContent.transform);

            profileButton.UpdateButton(profile);
        }
    }