public void SetUp() { InputManager.OnBindsChanged += UpdateBinds; positiveBind = InputManager.GetBindValue(positiveName); negativeBind = InputManager.GetBindValue(negativeName); }
public void UpdateBinds(string bindAccessor) { if (bindAccessor == positiveName) { positiveBind = InputManager.GetBindValue(positiveName); } if (bindAccessor == negativeName) { negativeBind = InputManager.GetBindValue(negativeName); } }