Пример #1
0
        /// <summary> 새로운 바인딩 설정 적용 </summary>
        public void ApplyNewBindings(SerializableInputBinding newBinding)
        {
            _bindingDict.Clear();

            foreach (var pair in newBinding.bindPairs)
            {
                _bindingDict[pair.key] = pair.value;
            }
        }
Пример #2
0
        public InputBinding(SerializableInputBinding sib)
        {
            _bindingDict = new Dictionary<UserAction, KeyCode>();

            foreach (var pair in sib.bindPairs)
            {
                _bindingDict[pair.key] = pair.value;
            }
        }