Ejemplo n.º 1
0
        public void SetUp()
        {
            InputManager.OnBindsChanged += UpdateBinds;

            positiveBind = InputManager.GetBindValue(positiveName);
            negativeBind = InputManager.GetBindValue(negativeName);
        }
Ejemplo n.º 2
0
        public void UpdateBinds(string bindAccessor)
        {
            if (bindAccessor == positiveName)
            {
                positiveBind = InputManager.GetBindValue(positiveName);
            }

            if (bindAccessor == negativeName)
            {
                negativeBind = InputManager.GetBindValue(negativeName);
            }
        }