private void DeactivateInteractor(BlockInteractor interactor) { if (interactor.IsActivated()) { interactor.Deactivate(); } }
public void Select(BlockInteractor interactor) { var previousInteractor = _activeInteractor; if (previousInteractor) { _activeInteractor = null; previousInteractor.DeactivateFromPalette(); previousInteractor.ResetPosition(); } interactor.Activate(); _activeInteractor = interactor; }
void Start() { _blockInteractor = GetComponent <BlockInteractor>(); }