uChema 4 年前
当前提交
ce2090e7
共有 3 个文件被更改,包括 10 次插入10 次删除
  1. 4
      UOP1_Project/Assets/Scripts/Characters/Protagonist.cs
  2. 12
      UOP1_Project/Assets/Scripts/Input/InputReader.cs
  3. 4
      UOP1_Project/Assets/Scripts/UI/UIManager.cs

4
UOP1_Project/Assets/Scripts/Characters/Protagonist.cs


{
_openInventoryChannel.RaiseEvent();
private void OnStartedAttack() => attackInput = true;

12
UOP1_Project/Assets/Scripts/Input/InputReader.cs


}
public void OnCancel(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
closeInventoryEvent.Invoke();
}

menuConfirmEvent();
}
/* public void OnCancel(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
menuCancelEvent();
}*/
/* public void OnCancel(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
menuCancelEvent();
}*/
public void OnMouseMove(InputAction.CallbackContext context)
{

4
UOP1_Project/Assets/Scripts/UI/UIManager.cs


_inventoryPanel.gameObject.SetActive(true);
_inputReader.EnableMenuInput();
_inputReader.closeInventoryEvent += CloseInventoryScreen;
_inputReader.closeInventoryEvent += CloseInventoryScreen;
if (isForCooking)
{
_inventoryPanel.FillInventory(TabType.recipe, true);

}
}
public void CloseInventoryScreen()
{

正在加载...
取消
保存