Beispiel #1
0
        public InputAction InsertNewAction(int index, string name, InputAction source)
        {
            InputAction action = InputAction.Duplicate(name, source);

            m_actions.Insert(index, action);

            return(action);
        }
Beispiel #2
0
        public InputAction CreateNewAction(string name, InputAction source)
        {
            InputAction action = InputAction.Duplicate(name, source);

            m_actions.Add(action);

            return(action);
        }
Beispiel #3
0
        public static ControlScheme Duplicate(string name, ControlScheme source)
        {
            ControlScheme duplicate = new ControlScheme();

            duplicate.m_name        = name;
            duplicate.m_description = source.m_description;
            duplicate.m_uniqueID    = GenerateUniqueID();
            duplicate.m_actions     = new List <InputAction>();
            foreach (var action in source.m_actions)
            {
                duplicate.m_actions.Add(InputAction.Duplicate(action));
            }

            return(duplicate);
        }