public void SetEggToGuard(GameObject egg) { eggToGuard = egg; EntityThreatMonitor.Instance sMI = base.gameObject.GetSMI <EntityThreatMonitor.Instance>(); sMI.entityToProtect = egg; base.sm.hasEggToGuard.Set((UnityEngine.Object)egg != (UnityEngine.Object)null, base.smi); }
public Instance(Chore <Instance> chore, Def def) : base((IStateMachineTarget)chore, def) { EntityThreatMonitor.Instance sMI = base.gameObject.GetSMI <EntityThreatMonitor.Instance>(); sMI.allyTag = def.protectorTag; }