Exemplo n.º 1
0
    void SetScreen(ProfileScreen screen)
    {
        mainObject.SetActive(screen == ProfileScreen.Main);
        deleteObject.SetActive(screen == ProfileScreen.Delete);
        editObject.SetActive(screen == ProfileScreen.Edit || screen == ProfileScreen.Create);

        profileScreen = screen;

        if (screen == ProfileScreen.Create)
        {
            SetupEditScreen(null);
        }
        else if (screen == ProfileScreen.Edit)
        {
            SetupEditScreen(ProfileManager.instance.profiles[scrollSection.GetSelected()]);
        }
        else if (screen == ProfileScreen.Delete)
        {
            Debug.Log(scrollSection.GetSelected());
            workingProfileIndex = scrollSection.GetSelected();
            deleteTextName.text = ProfileManager.instance.profiles[workingProfileIndex].profileName;
        }

        selection = 0;
        UpdateSelectionBox();
    }
Exemplo n.º 2
0
        public override void doClickedProcess()
        {
            ProfileScreen screen = (ProfileScreen)EngineGame.screenManager.CurrentScreen;

            if (screen.NewProfileName.Length > 0)
            {
                screen.profileManager.CreateNew(screen.NewProfileName);
            }
            base.doClickedProcess();
        }
Exemplo n.º 3
0
 public void directConnectCallback(DynamicButton b)
 {
     nextScreen = new ProfileScreen(this);
 }
 public void CancelScreen()
 {
     nextScreen = new ProfileScreen(this);
 }