public void Apply() { _withinRange = GetModdablesWithinRange(Range, TargetLayer); foreach (IModdable moddable in _withinRange) { Modifier.AddTo(moddable, this); OnApplied?.Invoke(moddable); } }
public bool Place() { if (focusModdable != null) { _modifier.AddTo(focusModdable, this); if (focusModdable is Component component) { _modifier.transform.SetParent(component.transform); } Destroy(gameObject); return(true); } return(false); }
public void Apply() { _modifier.AddTo(GetTarget(), this); OnApplied?.Invoke(GetTarget()); }
public void Apply() { Modifier.AddTo(ModdableTarget, this); UpdateDisableIfApplied(false); _currentlyModded = Target; }