Beispiel #1
0
        public void SetUp(UnitData unitData1, UnitData unitData2, QuestParam questParam)
        {
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.unitIcon1, (UnityEngine.Object)null))
            {
                DataSource.Bind <UnitData>(this.unitIcon1, unitData1);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.unitIcon2, (UnityEngine.Object)null))
            {
                DataSource.Bind <UnitData>(this.unitIcon2, unitData2);
            }
            if (unitData1 == null || unitData2 == null || (questParam == null || questParam == null))
            {
                return;
            }
            List <QuestParam> questParamList = questParam.DetectNotClearConditionQuests();

            if (questParamList == null || questParamList.Count <= 0)
            {
                return;
            }
            this.conditionText.set_text(LocalizedText.Get("sys.COLLABO_SKILL_QUEST_CONDITION", new object[1]
            {
                (object)string.Join(",", questParamList.ConvertAll <string>((Converter <QuestParam, string>)(q => q.name)).ToArray())
            }));
        }
Beispiel #2
0
        public void SetUp(UnitData unitData1, UnitData unitData2, QuestParam questParam)
        {
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.unitIcon1, (UnityEngine.Object)null))
            {
                DataSource.Bind <UnitData>(this.unitIcon1, unitData1);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.unitIcon2, (UnityEngine.Object)null))
            {
                DataSource.Bind <UnitData>(this.unitIcon2, unitData2);
            }
            if (unitData1 == null || unitData2 == null || (questParam == null || questParam == null))
            {
                return;
            }
            List <QuestParam> questParamList = questParam.DetectNotClearConditionQuests();

            if (questParamList == null || questParamList.Count <= 0)
            {
                return;
            }
            this.conditionText.set_text(string.Join(",", questParamList.ConvertAll <string>((Converter <QuestParam, string>)(q => q.name)).ToArray()) + "をクリア");
        }