Exemple #1
0
    void Update()
    {
        MinionAbility.Condition c = (MinionAbility.Condition)condition.value;
        condition_data.SetActive(MinionAbility.CheckDataCondition(c));

        MinionAbility.Ability a = (MinionAbility.Ability)ability.value;
        ability_data.SetActive(MinionAbility.CheckDataAbility(a));

        string s = "";

        s += "[" + c.ToString() + "]";
        if (condition_data.activeSelf)
        {
            s += "[" + c_data1.text + "]";
            s += "[" + c_data2.text + "]";
            s += "[" + c_data3.text + "]";
        }
        s += "[" + a.ToString() + "]";
        if (ability_data.activeSelf)
        {
            s += "[" + a_data1.text + "]";
            s += "[" + a_data2.text + "]";
            s += "[" + a_data3.text + "]";
        }
        outData.text = s;
    }
Exemple #2
0
    void Awake()
    {
        List <Dropdown.OptionData> temp = new List <Dropdown.OptionData>();

        for (MinionAbility.Condition i = MinionAbility.Condition.전투의함성; i <= MinionAbility.Condition.버그; i++)
        {
            Dropdown.OptionData data = new Dropdown.OptionData();
            data.text = i.ToString();
            temp.Add(data);
        }
        condition.AddOptions(temp);
        temp.Clear();
        for (MinionAbility.Ability i = MinionAbility.Ability.하수인에게_피해주기; i <= MinionAbility.Ability.버그; i++)
        {
            Dropdown.OptionData data = new Dropdown.OptionData();
            data.text = i.ToString();
            temp.Add(data);
        }
        ability.AddOptions(temp);
    }