Exemplo n.º 1
0
    protected override void OnSpawn()
    {
        base.OnSpawn();
        Initialize();
        characterNameTitle.OnStartedEditing += OnStartedEditing;
        characterNameTitle.OnNameChanged    += OnNameChanged;
        reshuffleButton.onClick             += delegate
        {
            Reshuffle(true);
        };
        List <IListableOption> list  = new List <IListableOption>();
        List <SkillGroup>      list2 = new List <SkillGroup>(Db.Get().SkillGroups.resources);

        foreach (SkillGroup item in list2)
        {
            list.Add(item);
        }
        archetypeDropDown.Initialize(list, OnArchetypeEntryClick, archetypeDropDownSort, archetypeDropEntryRefreshAction, false, null);
        archetypeDropDown.CustomizeEmptyRow(Strings.Get("STRINGS.UI.CHARACTERCONTAINER_NOARCHETYPESELECTED"), noArchetypeIcon);
        StartCoroutine(DelayedGeneration());
    }