private void OnLockChanged() { previousLockState = CurrentLockState; for (int i = OnLockChangedListeners.Count - 1; i >= 0; i--) { OnLockChangedListeners[i].OnLockChanged(this, CurrentLockState); } }
private void OnEnable() { previousLockState = CurrentLockState; }