예제 #1
0
        public void PresetTwo()
        {
            Ka DadiKa = new Ka(ScenePropertyManager.Instance.typeToContainer[CharacterType.PlayerDadi]);

            DadiKa.AddPassive(ScenePropertyManager.Instance.typeToContainer[CharacterType.PlayerDadi].Passive);
            Ka BonganiKa = new Ka(ScenePropertyManager.Instance.typeToContainer[CharacterType.PlayerBongani]);

            BonganiKa.AddPassive(ScenePropertyManager.Instance.typeToContainer[CharacterType.PlayerBongani].Passive);

            ScenePropertyManager.Instance.SetCharacterParty(new List <Tuple <CharacterBoardEntity, Ka> >()
            {
                new Tuple <CharacterBoardEntity, Ka>(ScenePropertyManager.Instance.typeToBE[CharacterType.PlayerLesidi], null),
                new Tuple <CharacterBoardEntity, Ka>(ScenePropertyManager.Instance.typeToBE[CharacterType.PlayerJaz], DadiKa),
                new Tuple <CharacterBoardEntity, Ka>(ScenePropertyManager.Instance.typeToBE[CharacterType.PlayerTisha], BonganiKa),
                new Tuple <CharacterBoardEntity, Ka>(ScenePropertyManager.Instance.typeToBE[CharacterType.PlayerAmare], null),
            });

            characterView2.Clear();
        }
예제 #2
0
    private void DropDownSelect()
    {
        TMP_Dropdown.OptionData option = dropDown.options[dropDown.value];
        if (option != selectOption)
        {
            selected();
            if (dropDown.options.Contains(selectOption))
            {
                dropDown.options.Remove(selectOption);
            }

            ka = new Ka(charContainer);
            if (optionToPassive.ContainsKey(option))
            {
                ka.AddPassive(optionToPassive[option]);
                DisplayObjectHelper(optionToPassive[option].GetTitleHelper(), optionToPassive[option].GetDescriptionHelper(), skillContainer);
            }
            if (optionToSkill.ContainsKey(option))
            {
                ka.AddSkill(optionToSkill[option]);
                DisplayObjectHelper(optionToSkill[option].GetTitle(), optionToSkill[option].GetDescriptionHelper(), skillContainer);
            }
        }
    }