Beispiel #1
0
        // -----------------------------------------------------------------------------------
        // Show
        // -----------------------------------------------------------------------------------
        public override void Show()
        {
            headlineText.text = DescriptionLibrary.GetName("Hdl_SelectClass");
            startButton.GetComponentInChildren <Text>().text  = DescriptionLibrary.GetName("Btn_StartGame");
            cancelButton.GetComponentInChildren <Text>().text = DescriptionLibrary.GetName("Btn_Cancel");

            // fhiz: todo:
            // can't replace (name) with description.getName as it screws assigning the class
            // to the player later on

            classDropdown.options = CharacterClassLibrary.GetAllTemplates().Select(
                p => new Dropdown.OptionData(p.name)
                ).ToList();

            base.Show();
        }
Beispiel #2
0
        // -----------------------------------------------------------------------------------
        // OnClassChanged
        // -----------------------------------------------------------------------------------
        public void OnClassChanged()
        {
            CharacterClassTemplate tmpl = CharacterClassLibrary.GetTemplate(classDropdown.options[classDropdown.value].text);

            Obj.GetPlayer.archetype.InitalizeArchetype(tmpl);
        }