Example #1
0
        private void updateCurrentRecord(ChangeType type)
        {
            if (type == ChangeType.None || currentState == null)
            {
                return;
            }

            currentRecord = currentState.FindRecord(type);
            if (currentRecord == null)
            {
                currentRecord = currentState.AddRecord(type);
            }
            else
            {
                currentRecord.SetAction(currentRecord.LastActionType);
            }
        }