22 lines
669 B
C#
22 lines
669 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
public class KillMissionCondition : MissionCondition
|
|
{
|
|
public KillMissionCondition() : base(MissionTypeEnum.Kill) { }
|
|
|
|
public KillMissionCondition(MissionCondition missionCondition) : base(MissionTypeEnum.Kill)
|
|
{
|
|
// Convert base type Subject on specified sub-class (with own functions)
|
|
RequiredElements.Clear();
|
|
foreach(RequiredSubject requiredSubject in missionCondition.RequiredElements)
|
|
{
|
|
RequiredElements.Add(new KillRequiredSubject(requiredSubject));
|
|
}
|
|
}
|
|
}
|