void OnEnable() { if (targetable) { targetable.AddWatcher(this); } }
public void SetTarget(TargetableSystem newTarget) { if (targetable != null) { targetable.RemoveWatcher(this); } targetable = newTarget; newTarget.AddWatcher(this); }