FH3NHDU7BEUXKJLPIB2SZWCTI37CEQF6OMTKGP2T7WYE6V73NKVQC
fileFormatVersion: 2
guid: cae1f8342dc51e64ab537745c32e9f77
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using System;
using System.Linq;
public class ApplyTagsEffect : IEffect
{
bool FriendOrFoeOff { get; set; }
public void Effect(EffectContext context) {
// TODO: Apply friendOrFoeOff
var targets = context.GetEffectedUnits().Select(t => t.GetComponent<TaggableUnit>()).Where(t => t!=null);
context._tagSystem.ApplyTags(targets, context.CurrentTags.AsEnumerable());
}
public void Populate(EffectRef effectRef) {
FriendOrFoeOff = effectRef.FriendOrFoeOff;
}
}