void OnEnable() { SimulationPanel.instance.AddConfigurable(this); if (correlationTarget != null) { correlationTarget.AddCorrelatedObject(this); } }
public void UndoAction() { correlatedObject.correlationTarget = previousCorrelationTarget; correlationTarget.RemoveCorrelatedObject(correlatedObject); if (previousCorrelationTarget) { previousCorrelationTarget.AddCorrelatedObject(correlatedObject); } }