浏览代码

Fix Subscribe/unsubscribe issue in UI. Implement Pause Menu with all its functions

/main
uChema 4 年前
当前提交
c3699920
共有 36 个文件被更改,包括 1993 次插入665 次删除
  1. 18
      UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc Shared Data.asset
  2. 16
      UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc_en.asset
  3. 16
      UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc_fr.asset
  4. 1
      UOP1_Project/Assets/Prefabs/LocationChunks/Meshes/BeachLeft.asset
  5. 5
      UOP1_Project/Assets/Prefabs/Managers/UIManager.prefab
  6. 50
      UOP1_Project/Assets/Prefabs/UI/Pause_Screen.prefab
  7. 56
      UOP1_Project/Assets/Prefabs/UI/Popup/Confirmation_Popup.prefab
  8. 6
      UOP1_Project/Assets/Prefabs/UI/UnpauseButton.prefab
  9. 383
      UOP1_Project/Assets/Scenes/Managers/Gameplay.unity
  10. 69
      UOP1_Project/Assets/Scenes/Managers/PersistentManagers.unity
  11. 96
      UOP1_Project/Assets/Scenes/Menus/MainMenu.unity
  12. 120
      UOP1_Project/Assets/Scenes/WIP/TestingGround.unity
  13. 3
      UOP1_Project/Assets/ScriptableObjects/Events/.DS_Store
  14. 14
      UOP1_Project/Assets/ScriptableObjects/Inventory/PlayerInventory.asset
  15. 13
      UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs
  16. 17
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/BoolEventChannelSO.cs
  17. 11
      UOP1_Project/Assets/Scripts/Gameplay/GameManager.cs
  18. 1
      UOP1_Project/Assets/Scripts/Gameplay/GameStateSO.cs
  19. 676
      UOP1_Project/Assets/Scripts/Input/GameInput.cs
  20. 67
      UOP1_Project/Assets/Scripts/Input/InputReader.cs
  21. 1
      UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs
  22. 1
      UOP1_Project/Assets/Scripts/Inventory/UIInventoryManager.cs
  23. 8
      UOP1_Project/Assets/Scripts/Menu/MenuController.cs
  24. 6
      UOP1_Project/Assets/Scripts/SceneManagement/StartGame.cs
  25. 24
      UOP1_Project/Assets/Scripts/UI/InventoryTypeTabsFiller.cs
  26. 7
      UOP1_Project/Assets/Scripts/UI/UIButtonSetter.cs
  27. 253
      UOP1_Project/Assets/Scripts/UI/UIManager.cs
  28. 29
      UOP1_Project/Assets/Scripts/UI/UIMenuManager.cs
  29. 3
      UOP1_Project/Assets/Scripts/UI/UIPaginationFiller.cs
  30. 14
      UOP1_Project/Assets/Scripts/UI/UIPauseScreenSetter.cs
  31. 1
      UOP1_Project/Assets/Scripts/UI/UIPopupButtonSetter.cs
  32. 25
      UOP1_Project/Assets/Scripts/UI/UIPopupSetter.cs
  33. 536
      UOP1_Project/Assets/Settings/Input/GameInput.inputactions
  34. 18
      UOP1_Project/UserSettings/EditorUserSettings.asset
  35. 87
      UOP1_Project/Assets/Prefabs/UI/EventSystem.prefab
  36. 7
      UOP1_Project/Assets/Prefabs/UI/EventSystem.prefab.meta

18
UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc Shared Data.asset


m_Metadata:
m_Items: []
- m_Id: 360002618384384
m_Key: Back To Menu
m_Key: BackToMenu
m_Metadata:
m_Items: []
- m_Id: 1402275795820544
m_Key: BackToMenu_Popup_Title
m_Metadata:
m_Items: []
- m_Id: 1402374143860736
m_Key: BackToMenu_Popup_Description
m_Metadata:
m_Items: []
- m_Id: 1402618692755456
m_Key: Confirm_BackToMenu
m_Metadata:
m_Items: []
- m_Id: 1402740012998656
m_Key: Cancel_BackToMenu
m_Metadata:
m_Items: []
m_Metadata:

16
UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc_en.asset


m_Localized: Back to Menu
m_Metadata:
m_Items: []
- m_Id: 1402275795820544
m_Localized: Already?
m_Metadata:
m_Items: []
- m_Id: 1402374143860736
m_Localized: 'Are you sure you want to go back to the main menu? '
m_Metadata:
m_Items: []
- m_Id: 1402618692755456
m_Localized: Yes
m_Metadata:
m_Items: []
- m_Id: 1402740012998656
m_Localized: No
m_Metadata:
m_Items: []
references:
version: 1

16
UOP1_Project/Assets/LocalizationFiles/AssetTables/UI/UI Misc_fr.asset


m_Localized: Retour au menu
m_Metadata:
m_Items: []
- m_Id: 1402275795820544
m_Localized: "D\xE9j\xE0 ?"
m_Metadata:
m_Items: []
- m_Id: 1402374143860736
m_Localized: "\xCAtes vous sur de vouloir revenir au menu principale ? "
m_Metadata:
m_Items: []
- m_Id: 1402618692755456
m_Localized: Oui
m_Metadata:
m_Items: []
- m_Id: 1402740012998656
m_Localized: Non
m_Metadata:
m_Items: []
references:
version: 1

1
UOP1_Project/Assets/Prefabs/LocationChunks/Meshes/BeachLeft.asset
文件差异内容过多而无法显示
查看文件

5
UOP1_Project/Assets/Prefabs/Managers/UIManager.prefab


m_Script: {fileID: 11500000, guid: e5eb1a5a891704b35b2ad0529d003d43, type: 3}
m_Name:
m_EditorClassIdentifier:
_popupPanel: {fileID: 0}
_dialogueController: {fileID: 0}
_inventoryPanel: {fileID: 0}
_interactionPanel: {fileID: 0}

_mainMenu: {fileID: 11400000, guid: 431ff81b74b48fb4d9301fb76ca633dd, type: 2}
_inputReader: {fileID: 11400000, guid: 945ec0365077176418488737deed54be, type: 2}
_onSceneReady: {fileID: 11400000, guid: b729e40fc41dd8b4ea7aaf5c857f7186, type: 2}
_openUIDialogueEvent: {fileID: 11400000, guid: d987db4881d794f2da0013a89588d890,

_openSettingEvent: {fileID: 11400000, guid: 7bf6e10e5b9c745799d4ab0fa041e72d, type: 2}
_closeSettingScreenEvent: {fileID: 11400000, guid: c42d49d01efc749a9a5326b51dcc32af,
type: 2}
_closePopupEvent: {fileID: 11400000, guid: 849b97e2c22a94f13b2c9870145abc4c, type: 2}
_confirmPopupEvent: {fileID: 11400000, guid: 2b8629cd2aced42e5a2b0d0cb5fb1af4, type: 2}
_loadMenuEvent: {fileID: 11400000, guid: 33cec85652903d245b99985f9cec9841, type: 2}

50
UOP1_Project/Assets/Prefabs/UI/Pause_Screen.prefab


m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &4003648912235736084
RectTransform:
m_ObjectHideFlags: 0

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 465
value: 0
value: -83.63515
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

propertyPath: m_Name
value: UnpauseButton
objectReference: {fileID: 0}
- target: {fileID: 4107745346167891708, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 359750184198144
objectReference: {fileID: 0}
- target: {fileID: 4513302106742259857, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 321620e2cc6514a338068369082a39ec, type: 3}
--- !u!114 &2991560591525884717 stripped

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 465
value: 0
value: -263.63513
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

propertyPath: m_Name
value: BackToMenu
objectReference: {fileID: 0}
- target: {fileID: 4107745346167891708, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 360002618384384
objectReference: {fileID: 0}
- target: {fileID: 4513302106742259857, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_Navigation.m_SelectOnUp

type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
objectReference: {fileID: 1410403145990474265}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 321620e2cc6514a338068369082a39ec, type: 3}
--- !u!224 &5350065045930583325 stripped

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 465
value: 0
value: -173.63515
objectReference: {fileID: 0}
- target: {fileID: 4107745345308144954, guid: 321620e2cc6514a338068369082a39ec,
type: 3}

propertyPath: m_Name
value: Settings
objectReference: {fileID: 0}
- target: {fileID: 4107745346167891708, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 359857323499520
objectReference: {fileID: 0}
- target: {fileID: 4513302106742259857, guid: 321620e2cc6514a338068369082a39ec,
type: 3}
propertyPath: m_Navigation.m_SelectOnUp

type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
objectReference: {fileID: 1410403146143041407}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 321620e2cc6514a338068369082a39ec, type: 3}
--- !u!224 &5350065045508532347 stripped

56
UOP1_Project/Assets/Prefabs/UI/Popup/Confirmation_Popup.prefab


m_EditorClassIdentifier:
m_StringReference:
m_TableReference:
m_TableCollectionName:
m_TableCollectionName: GUID:457af5455987a4876acc4332c3a761e5
m_TableEntryReference:
m_KeyId: 0
m_Key:

m_EditorClassIdentifier:
m_StringReference:
m_TableReference:
m_TableCollectionName: GUID:4ac9e5091d0514d5c91eeeb5d5fb852e
m_TableCollectionName: GUID:457af5455987a4876acc4332c3a761e5
m_KeyId: 40314593280
m_KeyId: 0
m_Key:
m_FallbackState: 0
m_FormatArguments: []

type: 3}
propertyPath: m_Navigation.m_SelectOnRight
value:
objectReference: {fileID: 0}
objectReference: {fileID: 5931516840387701227}
objectReference: {fileID: 0}
- target: {fileID: 297632141197697312, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 297632141197697313, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}

m_Script: {fileID: 11500000, guid: d21c5d8dcb2bf4a9a9adc2d2b723cfa6, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1566308155770987574 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 252969180845692042, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
m_PrefabInstance: {fileID: 1602752435333050556}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &5895846343219592545
PrefabInstance:
m_ObjectHideFlags: 0

m_Modifications:
- target: {fileID: 252969180845692042, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
propertyPath: m_Navigation.m_SelectOnRight
value:
objectReference: {fileID: 0}
- target: {fileID: 252969180845692042, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
- target: {fileID: 252969180845692042, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
propertyPath: m_Navigation.m_SelectOnLeft
objectReference: {fileID: 0}
objectReference: {fileID: 1566308155770987574}
objectReference: {fileID: 0}
- target: {fileID: 297632141197697312, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 297632141197697313, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}

m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d21c5d8dcb2bf4a9a9adc2d2b723cfa6, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &5931516840387701227 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 252969180845692042, guid: 344bb0b18b7db4b4e8874973eb391ca1,
type: 3}
m_PrefabInstance: {fileID: 5895846343219592545}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &6177104811887306383

6
UOP1_Project/Assets/Prefabs/UI/UnpauseButton.prefab


m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: UIPopupButtonSetter, Assembly-CSharp
m_MethodName: ButtonClicked
- m_Target: {fileID: 6966040858402298430}
m_TargetAssemblyTypeName: UIButtonSetter, Assembly-CSharp
m_MethodName: Click
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}

383
UOP1_Project/Assets/Scenes/Managers/Gameplay.unity


debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &423600850
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 423600853}
- component: {fileID: 423600852}
- component: {fileID: 423600851}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &423600851
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 423600850}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_MoveRepeatDelay: 0.5
m_MoveRepeatRate: 0.1
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_PointAction: {fileID: 1054132383583890850, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_MoveAction: {fileID: -1680190386980627800, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_SubmitAction: {fileID: 2064916234097673511, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_CancelAction: {fileID: -1967631576421560919, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_LeftClickAction: {fileID: 8056856818456041789, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_MiddleClickAction: {fileID: 3279352641294131588, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_RightClickAction: {fileID: 3837173908680883260, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_ScrollWheelAction: {fileID: 4502412055082496612, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_TrackedDevicePositionAction: {fileID: 4754684134866288074, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_TrackedDeviceOrientationAction: {fileID: 1025543830046995696, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_DeselectOnBackgroundClick: 1
m_PointerBehavior: 0
--- !u!114 &423600852
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 423600850}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &423600853
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 423600850}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &670213351 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8980297398607076176, guid: ccad748453924ff4092fe3e5b978d8e5,

type: 3}
m_PrefabInstance: {fileID: 1847093150938251760}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1479900141
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1869732381}
m_Modifications:
- target: {fileID: 1305894367536927133, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1305894367536927133, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1305894367536927133, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 335
objectReference: {fileID: 0}
- target: {fileID: 1305894367536927133, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -69.587555
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640675, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_Name
value: Confirmation_Popup
objectReference: {fileID: 0}
- target: {fileID: 6177104812556640675, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6193337729689869376, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6193337729689869376, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6193337729689869376, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 665
objectReference: {fileID: 0}
- target: {fileID: 6193337729689869376, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -69.587555
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 81332ce8a86cf4644bc42f8a9873d73d, type: 3}
--- !u!224 &1479900142 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6177104812556640672, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
m_PrefabInstance: {fileID: 1479900141}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1479900143 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6177104812556640679, guid: 81332ce8a86cf4644bc42f8a9873d73d,
type: 3}
m_PrefabInstance: {fileID: 1479900141}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e8f45cb552a054d379eac5cf341d2142, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!224 &1540519754 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3687453176568796422, guid: 0ac9fcac72b964a9181545df5e543b03,

- {fileID: 1172743537}
- {fileID: 1300813243}
- {fileID: 4949818870599756131}
- {fileID: 1479900142}
m_Father: {fileID: 0}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

propertyPath: m_Name
value: Pause_Screen
objectReference: {fileID: 0}
- target: {fileID: 4003648912235736087, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5350065045508532347, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5350065045508532347, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5350065045508532347, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 465
objectReference: {fileID: 0}
- target: {fileID: 5350065045508532347, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -173.63515
objectReference: {fileID: 0}
- target: {fileID: 5350065045930583325, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5350065045930583325, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5350065045930583325, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 465
objectReference: {fileID: 0}
- target: {fileID: 5350065045930583325, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -263.63513
objectReference: {fileID: 0}
- target: {fileID: 5350065046656382683, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 360002618384384
objectReference: {fileID: 0}
- target: {fileID: 5350065047039638461, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 359857323499520
objectReference: {fileID: 0}
- target: {fileID: 5592594606971883702, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5592594606971883702, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
- target: {fileID: 5592594607091949008, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5592594607091949008, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
- target: {fileID: 8082225623713566703, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_StringReference.m_TableEntryReference.m_KeyId
value: 359750184198144
objectReference: {fileID: 0}
- target: {fileID: 8082225625269738537, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8082225625269738537, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8082225625269738537, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 465
objectReference: {fileID: 0}
- target: {fileID: 8082225625269738537, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -83.63515
objectReference: {fileID: 0}
- target: {fileID: 8613707787055999362, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8613707787055999362, guid: cb311613a647f46b6a6c9dc887acd1a9,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: cb311613a647f46b6a6c9dc887acd1a9, type: 3}
--- !u!1001 &8313085415731550940

propertyPath: m_Name
value: UIManager
objectReference: {fileID: 0}
- target: {fileID: 8313085416397863411, guid: 2af68f4e6b94140cfbcdee05fcc28ce3,
type: 3}
propertyPath: _popupPanel
value:
objectReference: {fileID: 1479900143}
- target: {fileID: 8313085416397863411, guid: 2af68f4e6b94140cfbcdee05fcc28ce3,
type: 3}
propertyPath: _pauseScreen

69
UOP1_Project/Assets/Scenes/Managers/PersistentManagers.unity


_ToggleLoadingScreen: {fileID: 11400000, guid: ce8db9fc090944349ba225edb81028d4,
type: 2}
loadingInterface: {fileID: 363619424}
--- !u!1001 &819074216
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503857, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4398103872695503860, guid: f3351fde0c1164c1da695b12e67d8675,
type: 3}
propertyPath: m_Name
value: EventSystem
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f3351fde0c1164c1da695b12e67d8675, type: 3}
--- !u!1 &841012433
GameObject:
m_ObjectHideFlags: 0

96
UOP1_Project/Assets/Scenes/Menus/MainMenu.unity


m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 5
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &250454811
PrefabInstance:

propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 31749702083169473, guid: 88498729c08b74b588c91db70fc55665,
type: 3}
propertyPath: m_Interactable
value: 0
objectReference: {fileID: 0}
- target: {fileID: 31749702083169474, guid: 88498729c08b74b588c91db70fc55665,
type: 3}
propertyPath: m_AnchorMax.y

- target: {fileID: 31749702957475741, guid: 88498729c08b74b588c91db70fc55665,
type: 3}
propertyPath: m_RootOrder
value: 4
value: 3
objectReference: {fileID: 0}
- target: {fileID: 31749702957475741, guid: 88498729c08b74b588c91db70fc55665,
type: 3}

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!81 &1419319622
AudioListener:

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1419319618}
m_Enabled: 1
--- !u!1 &1577385651
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1577385654}
- component: {fileID: 1577385653}
- component: {fileID: 1577385652}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1577385652
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1577385651}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_MoveRepeatDelay: 0.5
m_MoveRepeatRate: 0.1
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_PointAction: {fileID: 1054132383583890850, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_MoveAction: {fileID: 3710738434707379630, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_SubmitAction: {fileID: 2064916234097673511, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_CancelAction: {fileID: -1967631576421560919, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_LeftClickAction: {fileID: 8056856818456041789, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_MiddleClickAction: {fileID: 3279352641294131588, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_RightClickAction: {fileID: 3837173908680883260, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_ScrollWheelAction: {fileID: 4502412055082496612, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_TrackedDevicePositionAction: {fileID: 4754684134866288074, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_TrackedDeviceOrientationAction: {fileID: 1025543830046995696, guid: ca9f5fa95ffab41fb9a615ab714db018,
type: 3}
m_DeselectOnBackgroundClick: 1
m_PointerBehavior: 0
--- !u!114 &1577385653
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1577385651}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1577385654
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1577385651}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1689229997
GameObject:
m_ObjectHideFlags: 0

120
UOP1_Project/Assets/Scenes/WIP/TestingGround.unity
文件差异内容过多而无法显示
查看文件

3
UOP1_Project/Assets/ScriptableObjects/Events/.DS_Store
文件差异内容过多而无法显示
查看文件

14
UOP1_Project/Assets/ScriptableObjects/Inventory/PlayerInventory.asset


m_Script: {fileID: 11500000, guid: b39a296438081ff4c99abec393d12d54, type: 3}
m_Name: PlayerInventory
m_EditorClassIdentifier:
_items:
- _item: {fileID: 11400000, guid: ad74ee36e7b46fa418ce40cece6b730d, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: 8b1e94c4f92884d8091fd1396cd68e3a, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: 4e4f02d17d76e4c94b68971951eaa717, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: 735a41d8af06c466eb2776c3fff38307, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: dfda8fd036fda44f29d67f1f214567d6, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: 46e53fbab0dda4af3aefacf845effa7f, type: 2}
Amount: 2
_items: []

13
UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs


private void Start()
{
_startDialogue.OnEventRaised += DisplayDialogueData;
_startDialogue.OnEventRaised += DisplayDialogueData;
}
/// <summary>

public void DisplayDialogueData(DialogueDataSO dialogueDataSO)
{
if(_gameState.CurrentGameState != GameState.Cutscene)
_gameState.UpdateGameState(GameState.Dialogue);
if (_gameState.CurrentGameState != GameState.Cutscene)
_gameState.UpdateGameState(GameState.Dialogue);
BeginDialogueData(dialogueDataSO);
DisplayDialogueLine(_currentDialogue.DialogueLines[_counter], dialogueDataSO.Actor);
}

/// <param name="dialogueLine"></param>
public void DisplayDialogueLine(LocalizedString dialogueLine, ActorSO actor)
{
_openUIDialogueEvent.RaiseEvent(dialogueLine, actor);
_openUIDialogueEvent.RaiseEvent(dialogueLine, actor);
private void OnAdvance()
{

17
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/BoolEventChannelSO.cs


if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
public void UnsubscribeAll()
{
if (OnEventRaised != null)
{if (OnEventRaised.GetInvocationList() != null)
foreach (System.Delegate d in OnEventRaised.GetInvocationList())
{
OnEventRaised -= d as UnityAction<bool>;
}
}
else
{
Debug.Log("WHAT IS THIS and why is it null ");
}
}
}

11
UOP1_Project/Assets/Scripts/Gameplay/GameManager.cs


[SerializeField]
private GameStateSO _gameState = default;
[SerializeField]
private InputReader _inputReader = default;
private InputReader _inputReader = default;
{
{
_inputReader.pauseEvent += PauseGame;
}
// Start is called before the first frame update

}
public void PauseGame()
{
_gameState.UpdateGameState(GameState.Pause);
}
public void UnauseGame()
}
public void UnpauseGame()
{
_gameState.ResetToPreviousGameState();
}

1
UOP1_Project/Assets/Scripts/Gameplay/GameStateSO.cs


Cutscene,
LocationTransition,// when the character steps into LocationExit trigger, fade to black begins and control is removed from the player
Combat,//enemy is nearby and alert, player can't open Inventory or initiate dialogues, but can pause the game
}
//[CreateAssetMenu(fileName = "GameState", menuName = "Gameplay/GameState", order = 51)]

676
UOP1_Project/Assets/Scripts/Input/GameInput.cs


""interactions"": """"
},
{
""name"": ""ClosePopupEvent"",
""type"": ""Button"",
""id"": ""efe86ed9-53ac-4a9f-8894-0936a1bc3319"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""ChangeTab"",
""type"": ""Button"",
""id"": ""abff37db-1fb3-4f26-bceb-8ecdfc99fdef"",

""action"": ""InventoryActionButton"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8de239c2-a886-4c69-8890-06ba68d86a9a"",
""path"": ""<Gamepad>/buttonEast"",
""interactions"": """",
""processors"": """",
""groups"": ""KeyboardOrGamepad"",
""action"": ""ClosePopupEvent"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""fb9d51ec-83a8-43f2-ae0c-2872920cbbc9"",
""path"": ""<Keyboard>/escape"",
""interactions"": """",
""processors"": """",
""groups"": ""KeyboardOrGamepad"",
""action"": ""ClosePopupEvent"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},

""isPartOfComposite"": true
}
]
},
{
""name"": ""UI"",
""id"": ""ab932c38-5f65-4148-8d07-3705a3972187"",
""actions"": [
{
""name"": ""Navigate"",
""type"": ""Value"",
""id"": ""13f380cd-bf63-4f39-93c4-1e7a4d2a655f"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""Submit"",
""type"": ""Button"",
""id"": ""090de396-60fb-497f-aa78-1bb203a2a5bb"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""Cancel"",
""type"": ""Button"",
""id"": ""0fed7e1b-2af4-4e97-9469-8f507b3fc692"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""Point"",
""type"": ""PassThrough"",
""id"": ""c240d086-a88e-4b32-888c-b390fe3170be"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""Click"",
""type"": ""PassThrough"",
""id"": ""a9053c93-79f0-4f03-b633-e6206464a892"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""ScrollWheel"",
""type"": ""PassThrough"",
""id"": ""3ebbc755-b55c-457a-a167-b4c76dd35aae"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""MiddleClick"",
""type"": ""PassThrough"",
""id"": ""1fabb0e7-42b0-48cc-a6dc-2ee69eb5c3d7"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """"
},
{
""name"": ""RightClick"",
""type"": ""PassThrough"",
""id"": ""6954ca40-1059-46c9-8b83-84e2eaba10b1"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """"
},
{
""name"": ""TrackedDevicePosition"",
""type"": ""PassThrough"",
""id"": ""982a2fd5-8046-4952-adc3-d3f8b80b40a9"",
""expectedControlType"": ""Vector3"",
""processors"": """",
""interactions"": """"
},
{
""name"": ""TrackedDeviceOrientation"",
""type"": ""PassThrough"",
""id"": ""e5f183bf-b56d-4544-9e91-dd3a8ee857bc"",
""expectedControlType"": ""Quaternion"",
""processors"": """",
""interactions"": """"
}
],
""bindings"": [
{
""name"": ""Gamepad"",
""id"": ""70a3d601-734b-4e02-a79a-a51a09c216ae"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Navigate"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""7f4df2b0-13bb-4daf-801c-de4f7152d721"",
""path"": ""<Gamepad>/leftStick/up"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""up"",
""id"": ""2803b480-c400-445d-8f3d-23ee9d72399d"",
""path"": ""<Gamepad>/rightStick/up"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""c31ae40d-ef9a-4a6f-a06b-5cd5e5176ade"",
""path"": ""<Gamepad>/leftStick/down"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""bc0e412b-a5a3-4d67-adfc-57bf141c4549"",
""path"": ""<Gamepad>/rightStick/down"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""fbb0c7a1-60a2-4179-9e19-609a058fdf49"",
""path"": ""<Gamepad>/leftStick/left"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""b42d6496-db76-45ad-819f-76c7b794ef67"",
""path"": ""<Gamepad>/rightStick/left"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""b38989eb-3c8f-41a8-b48c-2a90cd55c118"",
""path"": ""<Gamepad>/leftStick/right"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""be89dbde-27e2-4244-a2be-eff5f0251a2b"",
""path"": ""<Gamepad>/rightStick/right"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""31cd33cd-7b6a-4766-b07b-35171e2e22e5"",
""path"": ""<Gamepad>/dpad"",
""interactions"": """",
""processors"": """",
""groups"": "";Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": ""Joystick"",
""id"": ""246075f9-35c2-4696-b1d3-0febc353dc67"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Navigate"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""84bd2888-38d1-49da-b763-d76fa33d8391"",
""path"": ""<Joystick>/stick/up"",
""interactions"": """",
""processors"": """",
""groups"": ""Joystick"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""dd7c01e4-44bc-4f4c-b6e9-c5c1d3317720"",
""path"": ""<Joystick>/stick/down"",
""interactions"": """",
""processors"": """",
""groups"": ""Joystick"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""c9301226-eea4-46a6-b175-41316fa121e8"",
""path"": ""<Joystick>/stick/left"",
""interactions"": """",
""processors"": """",
""groups"": ""Joystick"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""47850e92-a155-46f3-8878-8e2e0d0be1d5"",
""path"": ""<Joystick>/stick/right"",
""interactions"": """",
""processors"": """",
""groups"": ""Joystick"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Keyboard"",
""id"": ""2ea698ea-5e9a-47bf-81fe-ae45352b89dc"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Navigate"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""a6785cf4-8e10-4e78-ac17-fac30b46106c"",
""path"": ""<Keyboard>/w"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""up"",
""id"": ""47fd6b9e-195e-47e7-b91e-4245003b857f"",
""path"": ""<Keyboard>/upArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""57b2daad-3543-40be-911f-705c7b8da42d"",
""path"": ""<Keyboard>/s"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""e3bead85-eb95-4caf-b39b-c8803e5f37e1"",
""path"": ""<Keyboard>/downArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""c197a586-1302-4966-8ac1-2b1647d691d8"",
""path"": ""<Keyboard>/a"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""390810f4-0bdc-441e-8ebd-9d464b01631c"",
""path"": ""<Keyboard>/leftArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""fdbe4db7-eec2-4890-8910-0942a4178fe5"",
""path"": ""<Keyboard>/d"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""8880b0fd-a254-4220-8054-06ae97682883"",
""path"": ""<Keyboard>/rightArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""529de41d-d33c-45c7-a63c-1253e8c28db9"",
""path"": ""*/{Submit}"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Submit"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""360e452d-7e88-4322-b7cb-eebc676f3fed"",
""path"": ""*/{Cancel}"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Cancel"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""caa12b60-dcc1-4b2a-9366-f36f6e64f127"",
""path"": ""<Mouse>/position"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Point"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""885e17e8-0421-43bb-b93c-91c543327848"",
""path"": ""<Pen>/position"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Point"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e2b33e2d-ae2d-4688-bd69-f33ecdf36686"",
""path"": ""<Touchscreen>/touch*/position"",
""interactions"": """",
""processors"": """",
""groups"": ""Touch"",
""action"": ""Point"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""35fd277f-c329-485c-9069-809725ad6e98"",
""path"": ""<Mouse>/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": "";Keyboard&Mouse"",
""action"": ""Click"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f966c9a7-c0ee-4cae-8c25-450921435b1a"",
""path"": ""<Pen>/tip"",
""interactions"": """",
""processors"": """",
""groups"": "";Keyboard&Mouse"",
""action"": ""Click"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""423eebcc-7a02-47c6-9f37-1d611b787e81"",
""path"": ""<Touchscreen>/touch*/press"",
""interactions"": """",
""processors"": """",
""groups"": ""Touch"",
""action"": ""Click"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""163871a4-ff95-4949-b1e1-17466ab251cf"",
""path"": ""<XRController>/trigger"",
""interactions"": """",
""processors"": """",
""groups"": ""XR"",
""action"": ""Click"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""efbaa1fc-6dae-4579-bdaa-6619cbae9e7b"",
""path"": ""<Mouse>/scroll"",
""interactions"": """",
""processors"": """",
""groups"": "";Keyboard&Mouse"",
""action"": ""ScrollWheel"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""3baac3f9-50d0-47c5-8c0a-6e0f939bc3c3"",
""path"": ""<Mouse>/middleButton"",
""interactions"": """",
""processors"": """",
""groups"": "";Keyboard&Mouse"",
""action"": ""MiddleClick"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""a98f1d54-0e5b-40ac-8340-5c8b73e4f4fc"",
""path"": ""<Mouse>/rightButton"",
""interactions"": """",
""processors"": """",
""groups"": "";Keyboard&Mouse"",
""action"": ""RightClick"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""af18c884-cd38-4168-aad2-60ab4d19e244"",
""path"": ""<XRController>/devicePosition"",
""interactions"": """",
""processors"": """",
""groups"": ""XR"",
""action"": ""TrackedDevicePosition"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""af4993c8-5bb3-48a2-95d1-de9d484cfe3e"",
""path"": ""<XRController>/deviceRotation"",
""interactions"": """",
""processors"": """",
""groups"": ""XR"",
""action"": ""TrackedDeviceOrientation"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": [

m_Menus_Cancel = m_Menus.FindAction("Cancel", throwIfNotFound: true);
m_Menus_MouseMove = m_Menus.FindAction("MouseMove", throwIfNotFound: true);
m_Menus_Unpause = m_Menus.FindAction("Unpause", throwIfNotFound: true);
m_Menus_ClosePopupEvent = m_Menus.FindAction("ClosePopupEvent", throwIfNotFound: true);
m_Menus_ChangeTab = m_Menus.FindAction("ChangeTab", throwIfNotFound: true);
m_Menus_InventoryActionButton = m_Menus.FindAction("InventoryActionButton", throwIfNotFound: true);
// Dialogues

// UI
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true);
m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true);
m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true);
m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true);
m_UI_ScrollWheel = m_UI.FindAction("ScrollWheel", throwIfNotFound: true);
m_UI_MiddleClick = m_UI.FindAction("MiddleClick", throwIfNotFound: true);
m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true);
m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true);
m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", throwIfNotFound: true);
}
public void Dispose()

private readonly InputAction m_Menus_Cancel;
private readonly InputAction m_Menus_MouseMove;
private readonly InputAction m_Menus_Unpause;
private readonly InputAction m_Menus_ClosePopupEvent;
private readonly InputAction m_Menus_ChangeTab;
private readonly InputAction m_Menus_InventoryActionButton;
public struct MenusActions

public InputAction @Cancel => m_Wrapper.m_Menus_Cancel;
public InputAction @MouseMove => m_Wrapper.m_Menus_MouseMove;
public InputAction @Unpause => m_Wrapper.m_Menus_Unpause;
public InputAction @ClosePopupEvent => m_Wrapper.m_Menus_ClosePopupEvent;
public InputAction @ChangeTab => m_Wrapper.m_Menus_ChangeTab;
public InputAction @InventoryActionButton => m_Wrapper.m_Menus_InventoryActionButton;
public InputActionMap Get() { return m_Wrapper.m_Menus; }

@Unpause.started -= m_Wrapper.m_MenusActionsCallbackInterface.OnUnpause;
@Unpause.performed -= m_Wrapper.m_MenusActionsCallbackInterface.OnUnpause;
@Unpause.canceled -= m_Wrapper.m_MenusActionsCallbackInterface.OnUnpause;
@ClosePopupEvent.started -= m_Wrapper.m_MenusActionsCallbackInterface.OnClosePopupEvent;
@ClosePopupEvent.performed -= m_Wrapper.m_MenusActionsCallbackInterface.OnClosePopupEvent;
@ClosePopupEvent.canceled -= m_Wrapper.m_MenusActionsCallbackInterface.OnClosePopupEvent;
@ChangeTab.started -= m_Wrapper.m_MenusActionsCallbackInterface.OnChangeTab;
@ChangeTab.performed -= m_Wrapper.m_MenusActionsCallbackInterface.OnChangeTab;
@ChangeTab.canceled -= m_Wrapper.m_MenusActionsCallbackInterface.OnChangeTab;

@Unpause.started += instance.OnUnpause;
@Unpause.performed += instance.OnUnpause;
@Unpause.canceled += instance.OnUnpause;
@ClosePopupEvent.started += instance.OnClosePopupEvent;
@ClosePopupEvent.performed += instance.OnClosePopupEvent;
@ClosePopupEvent.canceled += instance.OnClosePopupEvent;
@ChangeTab.started += instance.OnChangeTab;
@ChangeTab.performed += instance.OnChangeTab;
@ChangeTab.canceled += instance.OnChangeTab;

}
}
public DialoguesActions @Dialogues => new DialoguesActions(this);
// UI
private readonly InputActionMap m_UI;
private IUIActions m_UIActionsCallbackInterface;
private readonly InputAction m_UI_Navigate;
private readonly InputAction m_UI_Submit;
private readonly InputAction m_UI_Cancel;
private readonly InputAction m_UI_Point;
private readonly InputAction m_UI_Click;
private readonly InputAction m_UI_ScrollWheel;
private readonly InputAction m_UI_MiddleClick;
private readonly InputAction m_UI_RightClick;
private readonly InputAction m_UI_TrackedDevicePosition;
private readonly InputAction m_UI_TrackedDeviceOrientation;
public struct UIActions
{
private @GameInput m_Wrapper;
public UIActions(@GameInput wrapper) { m_Wrapper = wrapper; }
public InputAction @Navigate => m_Wrapper.m_UI_Navigate;
public InputAction @Submit => m_Wrapper.m_UI_Submit;
public InputAction @Cancel => m_Wrapper.m_UI_Cancel;
public InputAction @Point => m_Wrapper.m_UI_Point;
public InputAction @Click => m_Wrapper.m_UI_Click;
public InputAction @ScrollWheel => m_Wrapper.m_UI_ScrollWheel;
public InputAction @MiddleClick => m_Wrapper.m_UI_MiddleClick;
public InputAction @RightClick => m_Wrapper.m_UI_RightClick;
public InputAction @TrackedDevicePosition => m_Wrapper.m_UI_TrackedDevicePosition;
public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation;
public InputActionMap Get() { return m_Wrapper.m_UI; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(UIActions set) { return set.Get(); }
public void SetCallbacks(IUIActions instance)
{
if (m_Wrapper.m_UIActionsCallbackInterface != null)
{
@Navigate.started -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
@Navigate.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
@Navigate.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnNavigate;
@Submit.started -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
@Submit.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
@Submit.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnSubmit;
@Cancel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
@Cancel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
@Cancel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnCancel;
@Point.started -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
@Point.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
@Point.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnPoint;
@Click.started -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
@Click.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
@Click.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnClick;
@ScrollWheel.started -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
@ScrollWheel.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
@ScrollWheel.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnScrollWheel;
@MiddleClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
@MiddleClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
@MiddleClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnMiddleClick;
@RightClick.started -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
@RightClick.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
@RightClick.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnRightClick;
@TrackedDevicePosition.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
@TrackedDevicePosition.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
@TrackedDevicePosition.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDevicePosition;
@TrackedDeviceOrientation.started -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
@TrackedDeviceOrientation.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
@TrackedDeviceOrientation.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnTrackedDeviceOrientation;
}
m_Wrapper.m_UIActionsCallbackInterface = instance;
if (instance != null)
{
@Navigate.started += instance.OnNavigate;
@Navigate.performed += instance.OnNavigate;
@Navigate.canceled += instance.OnNavigate;
@Submit.started += instance.OnSubmit;
@Submit.performed += instance.OnSubmit;
@Submit.canceled += instance.OnSubmit;
@Cancel.started += instance.OnCancel;
@Cancel.performed += instance.OnCancel;
@Cancel.canceled += instance.OnCancel;
@Point.started += instance.OnPoint;
@Point.performed += instance.OnPoint;
@Point.canceled += instance.OnPoint;
@Click.started += instance.OnClick;
@Click.performed += instance.OnClick;
@Click.canceled += instance.OnClick;
@ScrollWheel.started += instance.OnScrollWheel;
@ScrollWheel.performed += instance.OnScrollWheel;
@ScrollWheel.canceled += instance.OnScrollWheel;
@MiddleClick.started += instance.OnMiddleClick;
@MiddleClick.performed += instance.OnMiddleClick;
@MiddleClick.canceled += instance.OnMiddleClick;
@RightClick.started += instance.OnRightClick;
@RightClick.performed += instance.OnRightClick;
@RightClick.canceled += instance.OnRightClick;
@TrackedDevicePosition.started += instance.OnTrackedDevicePosition;
@TrackedDevicePosition.performed += instance.OnTrackedDevicePosition;
@TrackedDevicePosition.canceled += instance.OnTrackedDevicePosition;
@TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation;
@TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation;
@TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation;
}
}
}
public UIActions @UI => new UIActions(this);
private int m_KeyboardOrGamepadSchemeIndex = -1;
public InputControlScheme KeyboardOrGamepadScheme
{

void OnCancel(InputAction.CallbackContext context);
void OnMouseMove(InputAction.CallbackContext context);
void OnUnpause(InputAction.CallbackContext context);
void OnClosePopupEvent(InputAction.CallbackContext context);
void OnChangeTab(InputAction.CallbackContext context);
void OnInventoryActionButton(InputAction.CallbackContext context);
}

void OnAdvanceDialogue(InputAction.CallbackContext context);
}
public interface IUIActions
{
void OnNavigate(InputAction.CallbackContext context);
void OnSubmit(InputAction.CallbackContext context);
void OnCancel(InputAction.CallbackContext context);
void OnPoint(InputAction.CallbackContext context);
void OnClick(InputAction.CallbackContext context);
void OnScrollWheel(InputAction.CallbackContext context);
void OnMiddleClick(InputAction.CallbackContext context);
void OnRightClick(InputAction.CallbackContext context);
void OnTrackedDevicePosition(InputAction.CallbackContext context);
void OnTrackedDeviceOrientation(InputAction.CallbackContext context);
}
}

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


using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Events;
using System;
[CreateAssetMenu(fileName = "InputReader", menuName = "Game/Input Reader")]
public class InputReader : ScriptableObject, GameInput.IGameplayActions, GameInput.IDialoguesActions, GameInput.IMenusActions

public event UnityAction attackEvent = delegate { };
public event UnityAction attackCanceledEvent = delegate { };
public event UnityAction interactEvent = delegate { }; // Used to talk, pickup objects, interact with tools like the cooking cauldron
public event UnityAction openInventoryEvent = delegate { }; // Used to bring up the inventory
public event UnityAction closeInventoryEvent = delegate { };// Used to bring up the inventory
public event UnityAction pauseEvent = delegate { };
public event UnityAction<Vector2> moveEvent = delegate { };
public event UnityAction<Vector2, bool> cameraMoveEvent = delegate { };
public event UnityAction enableMouseControlCameraEvent = delegate { };

// Menus
public event UnityAction menuMouseMoveEvent = delegate { };
public event UnityAction menuConfirmEvent = delegate { };
public event UnityAction menuCancelEvent = delegate { };
public event UnityAction menuClickButtonEvent = delegate { };
public event UnityAction closePopupEvent = delegate { };
public event UnityAction menuPauseEvent = delegate { };
public event UnityAction menuCloseEvent = delegate { };
public event UnityAction openInventoryEvent = delegate { }; // Used to bring up the inventory
public event UnityAction<float> menuSwitchTab = delegate { };

EnableGameplayInput();
}
private void OnDisable()
{
DisableAllInput();

break;
}
}
public void DisplayDelegates()
{
if( openInventoryEvent.GetInvocationList().Length >0)
{
Debug.Log("OpenInventory has " + openInventoryEvent.GetInvocationList().Length + " Delegate");
}
foreach (Delegate d in openInventoryEvent.GetInvocationList())
{
Debug.Log("OpenInventory Delegates :: " + d.Target.ToString());
}
}
{
DisplayDelegates();
}
closeInventoryEvent.Invoke();
{ menuCloseEvent.Invoke();
}
public void OnInventoryActionButton(InputAction.CallbackContext context)
{

interactEvent.Invoke();
}
public void OnClosePopupEvent(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
closePopupEvent.Invoke();
}
public void OnJump(InputAction.CallbackContext context)
{

public void OnPause(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
pauseEvent.Invoke();
{ menuPauseEvent.Invoke();
}
public void OnRotateCamera(InputAction.CallbackContext context)
{

public void OnMoveSelection(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
moveSelectionEvent();
moveSelectionEvent.Invoke();
advanceDialogueEvent();
advanceDialogueEvent.Invoke();
menuConfirmEvent();
menuClickButtonEvent.Invoke();
/* public void OnCancel(InputAction.CallbackContext context)
{
if (context.phase == InputActionPhase.Performed)
menuCancelEvent();
}*/
menuMouseMoveEvent();
menuMouseMoveEvent.Invoke();
menuUnpauseEvent();
{
menuUnpauseEvent.Invoke();
}
public void EnableDialogueInput()
{

1
UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs


public void SelectItem()
{
_imgSelected.gameObject.SetActive(true);
if(_currentItemEvent!=null && _currentItem.Item!=null )
_currentItemEvent.RaiseEvent(_currentItem.Item);
}

1
UOP1_Project/Assets/Scripts/Inventory/UIInventoryManager.cs


//hover First Element
if (_instanciatedItems.Count > 0)
{
Debug.Log("SelectItem " + _instanciatedItems[0]._currentItem.Item);
_instanciatedItems[0].SelectFirstElement();
}

8
UOP1_Project/Assets/Scripts/Menu/MenuController.cs


private void OnEnable()
{
_inputReader.pauseEvent += OpenMenu;
_inputReader.menuUnpauseEvent += UnpauseMenu;
//_inputReader.menuPauseEvent += OpenMenu;
//_inputReader.menuUnpauseEvent += UnpauseMenu;
_inputReader.pauseEvent -= OpenMenu;
_inputReader.menuUnpauseEvent -= UnpauseMenu;
//_inputReader.menuPauseEvent -= OpenMenu;
//_inputReader.menuUnpauseEvent -= UnpauseMenu;
}
private void OpenMenu()

6
UOP1_Project/Assets/Scripts/SceneManagement/StartGame.cs


_startNewGameEvent.OnEventRaised += StartNewGame;
_continueGameEvent.OnEventRaised += ContinuePreviousGame;
}
private void OnDestroy()
{
_startNewGameEvent.OnEventRaised -= StartNewGame;
_continueGameEvent.OnEventRaised -= ContinuePreviousGame;
}
void StartNewGame()
{
_hasSaveData = false;

24
UOP1_Project/Assets/Scripts/UI/InventoryTypeTabsFiller.cs


[SerializeField]
private List<InventoryTypeTabFiller> instantiatedGameObjects;
bool canDisableLayout = false;
public void FillTabs(List<InventoryTabType> typesList, InventoryTabType selectedType, TabEventChannelSO changeTabEvent)
{

}
}
StartCoroutine(waitBeforeDesactiveLayout());
if (isActiveAndEnabled) // check if the game object is active and enabled so that we could start the coroutine.
{
StartCoroutine(waitBeforeDesactiveLayout());
}
else // if the game object is inactive, disabling the layout will happen on onEnable
{
canDisableLayout = true;
}
}
IEnumerator waitBeforeDesactiveLayout()

yield return new WaitForSeconds(1);
//disable layout group after layout calculation
if (gameObject.GetComponent<VerticalLayoutGroup>() != null)
{
canDisableLayout = false;
}
}
private void OnEnable()
{
if ((gameObject.GetComponent<VerticalLayoutGroup>() != null) && canDisableLayout)
{
gameObject.GetComponent<VerticalLayoutGroup>().enabled = false;
canDisableLayout = false;
}
}
}

7
UOP1_Project/Assets/Scripts/UI/UIButtonSetter.cs


public void SetButton(VoidEventChannelSO buttonEvent, bool select)
{
_buttonClickedEvent = buttonEvent;
_button.onClick.RemoveAllListeners();
_button.onClick.AddListener(()=>{ Debug.Log("Button"); _buttonClickedEvent.RaiseEvent();});
}
public void Click()
{
_buttonClickedEvent.RaiseEvent();
}
}

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


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
[SerializeField]
private UIDialogueManager _dialogueController = default;
[Header("Scene UI")]
[SerializeField] private UIPopupSetter _popupPanel = default;
[SerializeField]
private UIInventoryManager _inventoryPanel = default;
[SerializeField]private UIDialogueManager _dialogueController = default;
[SerializeField]
private UIInteractionManager _interactionPanel = default;
[SerializeField]private UIInventoryManager _inventoryPanel = default;
[Header("Pause Screen")]
[SerializeField]private UIInteractionManager _interactionPanel = default;
[Header("Pause Screen")]
[SerializeField]
private GameStateSO _gameState = default;
[SerializeField] private GameStateSO _gameState = default;
[SerializeField] private MenuSO _mainMenu = default;
[SerializeField] private VoidEventChannelSO _closeUIInventoryEvent = default;
[SerializeField] private VoidEventChannelSO _closeUIInventoryEvent = default;
[SerializeField] private VoidEventChannelSO _onInteractionEndedEvent = default;
[Header("Pause Events")]
[SerializeField] private VoidEventChannelSO _clickUnpauseEvent = default;
[SerializeField] private VoidEventChannelSO _clickBackToMenuEvent = default;

[Header("Popup Events")]
[SerializeField] private VoidEventChannelSO _closePopupEvent = default;
[SerializeField] private BoolEventChannelSO _confirmPopupEvent = default;
private void OnEnable()
[Header("Broadcasting on ")]
[SerializeField] private LoadEventChannelSO _loadMenuEvent = default;
[SerializeField] private VoidEventChannelSO _onInteractionEndedEvent = default;
bool isForCooking = false;
private void Start()
//Check if the event exists to avoid errors
_inputReader.openInventoryEvent += SetInventoryScreen;
_onSceneReady.OnEventRaised += ResetUI;
_closeUIDialogueEvent.OnEventRaised += CloseUIDialogue;
_inputReader.menuPauseEvent += OpenUIPause; // subscription to open Pause UI event happens in OnEnabled, but the close Event is only subscribed to when the popup is open
_inputReader.openInventoryEvent += SetInventoryScreen;
_onSceneReady.OnEventRaised += ResetUI;
_inputReader.pauseEvent += OpenUIPause;
_inputReader.menuUnpauseEvent += CloseUIPause;
}
void ResetUI()
{
_dialogueController.gameObject.SetActive(false);
_inventoryPanel.gameObject.SetActive(false);
_pauseScreen.gameObject.SetActive(false);
_interactionPanel.gameObject.SetActive(false);
_inputReader.EnableGameplayInput();
_clickUnpauseEvent.OnEventRaised += CloseUIPause;
_openSettingEvent.OnEventRaised += OpenSettingScreen;
_clickBackToMenuEvent.OnEventRaised += BackToMenu;
_closeSettingScreenEvent.OnEventRaised += CloseSettingScreen;
Time.timeScale = 1;
void OpenUIDialogue(LocalizedString dialogueLine, ActorSO actor)
{
_dialogueController.SetDialogue(dialogueLine, actor);
_dialogueController.gameObject.SetActive(true);
}
void CloseUIDialogue()
{
_dialogueController.gameObject.SetActive(false);
}
_onSceneReady.OnEventRaised -= ResetUI;
_closeUIInventoryEvent.OnEventRaised -= CloseInventoryScreen;
_inputReader.menuPauseEvent -= OpenUIPause;
_setInteractionEvent.OnEventRaised -= SetInteractionPanel;
_setInteractionEvent.OnEventRaised -= SetInteractionPanel;
}
void OpenUIPause()
{
_onSceneReady.OnEventRaised -= ResetUI;
Time.timeScale = 0; // Pause time
_inputReader.pauseEvent -= OpenUIPause;
_inputReader.menuPauseEvent -= OpenUIPause; // you cant open the UI Pause again once it's open
_inputReader.menuUnpauseEvent += CloseUIPause; // you can close the UI Pause popup if it's open
_inputReader.menuUnpauseEvent -= CloseUIPause;
_closeUIDialogueEvent.OnEventRaised -= CloseUIDialogue;
_clickUnpauseEvent.OnEventRaised -= CloseUIPause;
_openSettingEvent.OnEventRaised -= OpenSettingScreen;
_clickBackToMenuEvent.OnEventRaised -= BackToMenu;
_closeSettingScreenEvent.OnEventRaised -= CloseSettingScreen;
_openSettingEvent.OnEventRaised += OpenSettingScreen;//once the UI Pause popup is open, listen to open Settings
_clickBackToMenuEvent.OnEventRaised += ShowBackToMenuConfirmationPopup;//once the UI Pause popup is open, listen to back to menu button
_clickUnpauseEvent.OnEventRaised += CloseUIPause;//once the UI Pause popup is open, listen to unpause event
_pauseScreen.gameObject.SetActive(true);
_pauseScreen.SetPauseScreen();
}
void BackToMenu()
{
Debug.Log("Back to Menu ");
}
void OpenUIPause()
{
Time.timeScale = 0;
_inputReader.pauseEvent -= OpenUIPause;
_inputReader.pauseEvent += CloseUIPause;
_pauseScreen.gameObject.SetActive(true);
_pauseScreen.SetPauseScreen();
_gameState.UpdateGameState(GameState.Pause);
Time.timeScale = 1;
_inputReader.pauseEvent += OpenUIPause;
_inputReader.pauseEvent -= CloseUIPause;
Time.timeScale = 1; // unpause time
_inputReader.menuPauseEvent += OpenUIPause; // you can open UI pause menu again, if it's closed
_inputReader.menuUnpauseEvent -= CloseUIPause; // you can't close a closed popup
// once the popup is closed, you can't listen to the following events
_openSettingEvent.OnEventRaised -= OpenSettingScreen;
_clickBackToMenuEvent.OnEventRaised -= ShowBackToMenuConfirmationPopup;
_clickUnpauseEvent.OnEventRaised -= CloseUIPause;
_gameState.ResetToPreviousGameState();
CloseUIPause();
_inputReader.EnableMenuInput();
_inputReader.pauseEvent += CloseSettingScreen;
_settingScreen.gameObject.SetActive(true);
_clickUnpauseEvent.OnEventRaised -= CloseUIPause; // unsub from clause pause popup since it's inactive
_inputReader.menuCloseEvent += CloseSettingScreen; // sub to close setting event from input reader
_closeSettingScreenEvent.OnEventRaised += CloseSettingScreen; // sub to close setting event with event
_pauseScreen.gameObject.SetActive(false); // Set pause screen to inactive
_settingScreen.gameObject.SetActive(true);// set pause screen to active
// time is still set to 0 and Input is still set to menuInput
_inputReader.EnableGameplayInput();
_inputReader.pauseEvent -= CloseSettingScreen;
Debug.Log("Close Setting screen");
//unsub from close setting events
_inputReader.menuCloseEvent -= CloseSettingScreen;
_closeSettingScreenEvent.OnEventRaised -= CloseSettingScreen;
_pauseScreen.gameObject.SetActive(true); // Set pause screen to inactive
_clickUnpauseEvent.OnEventRaised += CloseUIPause; // unsub from clause pause popup since it's inactive
// time is still set to 0 and Input is still set to menuInput
//going out from setting screen gets us back to the pause screen
void ResetUI()
void ShowBackToMenuConfirmationPopup()
CloseUIDialogue();
CloseInventoryScreen();
SetInteractionPanel(false, InteractionType.None);
_pauseScreen.gameObject.SetActive(false); // Set pause screen to inactive
_clickUnpauseEvent.OnEventRaised -= CloseUIPause; // unsub from clause pause popup since it's inactive
_inputReader.menuCloseEvent += HideBackToMenuConfirmationPopup;
_closePopupEvent.OnEventRaised += HideBackToMenuConfirmationPopup;
_confirmPopupEvent.OnEventRaised += BackToMainMenu;
_inputReader.EnableMenuInput();
_popupPanel.gameObject.SetActive(true);
_popupPanel.SetPopup(PopupType.BackToMenu);
public void OpenUIDialogue(LocalizedString dialogueLine, ActorSO actor)
void BackToMainMenu(bool confirm)
_dialogueController.SetDialogue(dialogueLine, actor);
_dialogueController.gameObject.SetActive(true);
_confirmPopupEvent.OnEventRaised -= BackToMainMenu;
HideBackToMenuConfirmationPopup();// hide confirmation screen, show close UI pause,
if (confirm)
{
CloseUIPause();//close ui pause to unsub from all events
_loadMenuEvent.RaiseEvent(_mainMenu, false); //load main menu
}
public void CloseUIDialogue()
void HideBackToMenuConfirmationPopup()
_dialogueController.gameObject.SetActive(false);
}
_inputReader.menuCloseEvent -= HideBackToMenuConfirmationPopup;
_closePopupEvent.OnEventRaised -= HideBackToMenuConfirmationPopup;
public void SetInventoryScreenForCooking()
_pauseScreen.gameObject.SetActive(true); // Set pause screen to inactive
_clickUnpauseEvent.OnEventRaised += CloseUIPause; // unsub from clause pause popup since it's inactive
_popupPanel.gameObject.SetActive(false);
// time is still set to 0 and Input is still set to menuInput
//going out from confirmaiton popup screen gets us back to the pause screen
}
void SetInventoryScreenForCooking()
public void SetInventoryScreen()
void SetInventoryScreen()
bool isForCooking = false;
_inventoryPanel.gameObject.SetActive(true);
_inputReader.EnableMenuInput();
_inputReader.closeInventoryEvent += CloseInventoryScreen;
_inputReader.menuPauseEvent -= OpenUIPause; // you cant open the UI Pause again when you are in inventory
_inputReader.menuUnpauseEvent -= CloseUIPause; // you can close the UI Pause popup when you are in inventory
_gameState.UpdateGameState(GameState.Inventory);
_inputReader.menuCloseEvent += CloseInventoryScreen;
if (isForCooking)
{

{
_inventoryPanel.FillInventory();
}
_inventoryPanel.gameObject.SetActive(true);
_inputReader.EnableMenuInput();
_gameState.UpdateGameState(GameState.Inventory);
void CloseInventoryScreen()
{
_inputReader.menuPauseEvent += OpenUIPause; // you cant open the UI Pause again when you are in inventory
_inputReader.menuCloseEvent -= CloseInventoryScreen;
void CloseInventoryScreen()
{
_inputReader.EnableGameplayInput();
if (isForCooking)
{
_onInteractionEndedEvent.RaiseEvent();

_inputReader.EnableGameplayInput();
_inputReader.closeInventoryEvent -= CloseInventoryScreen;
public void SetInteractionPanel(bool isOpenEvent, InteractionType interactionType)
void SetInteractionPanel(bool isOpenEvent, InteractionType interactionType)
{
if (isOpenEvent)
{

}
}

29
UOP1_Project/Assets/Scripts/UI/UIMenuManager.cs


private VoidEventChannelSO _closeSettingsEvent = default;
[SerializeField]
private VoidEventChannelSO _closeCreditsEvent = default;
[SerializeField]
private VoidEventChannelSO _onGameExitEvent = default;

[SerializeField] private InputReader _inputReader = default;
private void Start()
private void OnEnable()
_closePopupEvent.OnEventRaised += HidePopup;
_closeSettingsEvent.OnEventRaised += CloseSettingsScreen;
_closeCreditsEvent.OnEventRaised += CloseCreditsScreen;
SetMenuScreen();
}
void SetMenuScreen()

void ShowStartNewGameConfirmationPopup()
{
_confirmPopupEvent.OnEventRaised += StartNewGamePopupResponse;
_closePopupEvent.OnEventRaised += HidePopup;
_popupPanel.gameObject.SetActive(true);
_popupPanel.SetPopup(PopupType.NewGame);

{
_closePopupEvent.OnEventRaised -= HidePopup;
_popupPanel.gameObject.SetActive(false);
if(startNewGameConfirmed)

void HidePopup()
{
_closePopupEvent.OnEventRaised -= HidePopup;
_confirmPopupEvent.UnsubscribeAll();
_inputReader.closePopupEvent += CloseSettingsScreen;
_inputReader.menuCloseEvent += CloseSettingsScreen;
_inputReader.closePopupEvent -= CloseSettingsScreen;
_inputReader.menuCloseEvent -= CloseSettingsScreen;
_settingsPanel.SetActive(false);
SetMenuScreen();

_creditsPanel.SetActive(true);
_inputReader.closePopupEvent += CloseCreditsScreen;
_inputReader.menuCloseEvent += CloseCreditsScreen;

_inputReader.closePopupEvent -= CloseCreditsScreen;
_inputReader.menuCloseEvent -= CloseCreditsScreen;
_creditsPanel.SetActive(false);
SetMenuScreen();

3
UOP1_Project/Assets/Scripts/UI/UIPaginationFiller.cs


}
public void SetPagination(int paginationCount, int selectedPaginationIndex)
{
if (_instantiatedImages == null)
_instantiatedImages = new List<Image>();
Debug.Log(maxCount);
if (maxCount > 0)
{
for (int i = 0; i < maxCount; i++)

14
UOP1_Project/Assets/Scripts/UI/UIPauseScreenSetter.cs


[SerializeField] private InputReader _inputReader = default;
private void Start()
private void OnEnable()
_closeButton.onClick.RemoveAllListeners();
_closeButton.onClick.AddListener(() => { _clickUnpauseEvent.RaiseEvent(); });
_inputReader.closePopupEvent += _clickUnpauseEvent.RaiseEvent;
_inputReader.menuCloseEvent += _clickUnpauseEvent.RaiseEvent;
private void OnDestroy()
{
_inputReader.menuCloseEvent -= _clickUnpauseEvent.RaiseEvent;
}
_closeButton.onClick.RemoveAllListeners();
_closeButton.onClick.AddListener(() => { _clickUnpauseEvent.RaiseEvent(); });
_unpauseButton.SetButton(_clickUnpauseEvent, true);
_settingsButton.SetButton(_clickSettingsEvent, false);

1
UOP1_Project/Assets/Scripts/UI/UIPopupButtonSetter.cs


public void ButtonClicked()
{
int idType = (int)_currentType;
Debug.Log(idType);
_buttonClickedEvent.RaiseEvent(idType);
}
}

25
UOP1_Project/Assets/Scripts/UI/UIPopupSetter.cs


public enum PopupType
{
Quit,
NewGame,
NewGame,
BackToMenu,
}
public class UIPopupSetter : MonoBehaviour
{

_popupButton2.SetButton(PopupButtonType.Cancel, actualType);
hasExitButton = true;
break;
case PopupType.BackToMenu:
isConfirmation = true;
_popupButton1.SetButton(PopupButtonType.Confirm, actualType);
_popupButton2.SetButton(PopupButtonType.Cancel, actualType);
hasExitButton = true;
break;
case PopupType.Quit:
isConfirmation = true;
_popupButton1.SetButton(PopupButtonType.Confirm, actualType);

if (hasExitButton) // can exit : Has to take the decision or aknowledge the information
{
_inputReader.closePopupEvent += _closePopupEvent.RaiseEvent;
_inputReader.menuCloseEvent += _closePopupEvent.RaiseEvent;
private void OnDestroy()
{
_inputReader.menuCloseEvent -= _closePopupEvent.RaiseEvent;
}
public void ButtonClicked(int buttonTypeIndex)
{

{
case PopupButtonType.Cancel:
_confirmPopupEvent.RaiseEvent(false);
break;
case PopupButtonType.Cancel:
_confirmPopupEvent.RaiseEvent(false);
break;
_confirmPopupEvent.RaiseEvent(true);
_confirmPopupEvent.RaiseEvent(true);
break;
default:
Debug.Log("Default");

536
UOP1_Project/Assets/Settings/Input/GameInput.inputactions


"interactions": ""
},
{
"name": "ClosePopupEvent",
"type": "Button",
"id": "efe86ed9-53ac-4a9f-8894-0936a1bc3319",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "ChangeTab",
"type": "Button",
"id": "abff37db-1fb3-4f26-bceb-8ecdfc99fdef",

"action": "InventoryActionButton",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "8de239c2-a886-4c69-8890-06ba68d86a9a",
"path": "<Gamepad>/buttonEast",
"interactions": "",
"processors": "",
"groups": "KeyboardOrGamepad",
"action": "ClosePopupEvent",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "fb9d51ec-83a8-43f2-ae0c-2872920cbbc9",
"path": "<Keyboard>/escape",
"interactions": "",
"processors": "",
"groups": "KeyboardOrGamepad",
"action": "ClosePopupEvent",
"isComposite": false,
"isPartOfComposite": false
}
]
},

"action": "MoveSelection",
"isComposite": false,
"isPartOfComposite": true
}
]
},
{
"name": "UI",
"id": "ab932c38-5f65-4148-8d07-3705a3972187",
"actions": [
{
"name": "Navigate",
"type": "Value",
"id": "13f380cd-bf63-4f39-93c4-1e7a4d2a655f",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Submit",
"type": "Button",
"id": "090de396-60fb-497f-aa78-1bb203a2a5bb",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Cancel",
"type": "Button",
"id": "0fed7e1b-2af4-4e97-9469-8f507b3fc692",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Point",
"type": "PassThrough",
"id": "c240d086-a88e-4b32-888c-b390fe3170be",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Click",
"type": "PassThrough",
"id": "a9053c93-79f0-4f03-b633-e6206464a892",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "ScrollWheel",
"type": "PassThrough",
"id": "3ebbc755-b55c-457a-a167-b4c76dd35aae",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "MiddleClick",
"type": "PassThrough",
"id": "1fabb0e7-42b0-48cc-a6dc-2ee69eb5c3d7",
"expectedControlType": "",
"processors": "",
"interactions": ""
},
{
"name": "RightClick",
"type": "PassThrough",
"id": "6954ca40-1059-46c9-8b83-84e2eaba10b1",
"expectedControlType": "",
"processors": "",
"interactions": ""
},
{
"name": "TrackedDevicePosition",
"type": "PassThrough",
"id": "982a2fd5-8046-4952-adc3-d3f8b80b40a9",
"expectedControlType": "Vector3",
"processors": "",
"interactions": ""
},
{
"name": "TrackedDeviceOrientation",
"type": "PassThrough",
"id": "e5f183bf-b56d-4544-9e91-dd3a8ee857bc",
"expectedControlType": "Quaternion",
"processors": "",
"interactions": ""
}
],
"bindings": [
{
"name": "Gamepad",
"id": "70a3d601-734b-4e02-a79a-a51a09c216ae",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Navigate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "7f4df2b0-13bb-4daf-801c-de4f7152d721",
"path": "<Gamepad>/leftStick/up",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "up",
"id": "2803b480-c400-445d-8f3d-23ee9d72399d",
"path": "<Gamepad>/rightStick/up",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "c31ae40d-ef9a-4a6f-a06b-5cd5e5176ade",
"path": "<Gamepad>/leftStick/down",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "bc0e412b-a5a3-4d67-adfc-57bf141c4549",
"path": "<Gamepad>/rightStick/down",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "fbb0c7a1-60a2-4179-9e19-609a058fdf49",
"path": "<Gamepad>/leftStick/left",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "b42d6496-db76-45ad-819f-76c7b794ef67",
"path": "<Gamepad>/rightStick/left",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "b38989eb-3c8f-41a8-b48c-2a90cd55c118",
"path": "<Gamepad>/leftStick/right",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "be89dbde-27e2-4244-a2be-eff5f0251a2b",
"path": "<Gamepad>/rightStick/right",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "31cd33cd-7b6a-4766-b07b-35171e2e22e5",
"path": "<Gamepad>/dpad",
"interactions": "",
"processors": "",
"groups": ";Gamepad",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "Joystick",
"id": "246075f9-35c2-4696-b1d3-0febc353dc67",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Navigate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "84bd2888-38d1-49da-b763-d76fa33d8391",
"path": "<Joystick>/stick/up",
"interactions": "",
"processors": "",
"groups": "Joystick",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "dd7c01e4-44bc-4f4c-b6e9-c5c1d3317720",
"path": "<Joystick>/stick/down",
"interactions": "",
"processors": "",
"groups": "Joystick",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "c9301226-eea4-46a6-b175-41316fa121e8",
"path": "<Joystick>/stick/left",
"interactions": "",
"processors": "",
"groups": "Joystick",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "47850e92-a155-46f3-8878-8e2e0d0be1d5",
"path": "<Joystick>/stick/right",
"interactions": "",
"processors": "",
"groups": "Joystick",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "Keyboard",
"id": "2ea698ea-5e9a-47bf-81fe-ae45352b89dc",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Navigate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "a6785cf4-8e10-4e78-ac17-fac30b46106c",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "up",
"id": "47fd6b9e-195e-47e7-b91e-4245003b857f",
"path": "<Keyboard>/upArrow",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "57b2daad-3543-40be-911f-705c7b8da42d",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "e3bead85-eb95-4caf-b39b-c8803e5f37e1",
"path": "<Keyboard>/downArrow",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "c197a586-1302-4966-8ac1-2b1647d691d8",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "390810f4-0bdc-441e-8ebd-9d464b01631c",
"path": "<Keyboard>/leftArrow",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "fdbe4db7-eec2-4890-8910-0942a4178fe5",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "8880b0fd-a254-4220-8054-06ae97682883",
"path": "<Keyboard>/rightArrow",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Navigate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "529de41d-d33c-45c7-a63c-1253e8c28db9",
"path": "*/{Submit}",
"interactions": "",
"processors": "",
"groups": "",
"action": "Submit",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "360e452d-7e88-4322-b7cb-eebc676f3fed",
"path": "*/{Cancel}",
"interactions": "",
"processors": "",
"groups": "",
"action": "Cancel",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "caa12b60-dcc1-4b2a-9366-f36f6e64f127",
"path": "<Mouse>/position",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Point",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "885e17e8-0421-43bb-b93c-91c543327848",
"path": "<Pen>/position",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Point",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "e2b33e2d-ae2d-4688-bd69-f33ecdf36686",
"path": "<Touchscreen>/touch*/position",
"interactions": "",
"processors": "",
"groups": "Touch",
"action": "Point",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "35fd277f-c329-485c-9069-809725ad6e98",
"path": "<Mouse>/leftButton",
"interactions": "",
"processors": "",
"groups": ";Keyboard&Mouse",
"action": "Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "f966c9a7-c0ee-4cae-8c25-450921435b1a",
"path": "<Pen>/tip",
"interactions": "",
"processors": "",
"groups": ";Keyboard&Mouse",
"action": "Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "423eebcc-7a02-47c6-9f37-1d611b787e81",
"path": "<Touchscreen>/touch*/press",
"interactions": "",
"processors": "",
"groups": "Touch",
"action": "Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "163871a4-ff95-4949-b1e1-17466ab251cf",
"path": "<XRController>/trigger",
"interactions": "",
"processors": "",
"groups": "XR",
"action": "Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "efbaa1fc-6dae-4579-bdaa-6619cbae9e7b",
"path": "<Mouse>/scroll",
"interactions": "",
"processors": "",
"groups": ";Keyboard&Mouse",
"action": "ScrollWheel",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "3baac3f9-50d0-47c5-8c0a-6e0f939bc3c3",
"path": "<Mouse>/middleButton",
"interactions": "",
"processors": "",
"groups": ";Keyboard&Mouse",
"action": "MiddleClick",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "a98f1d54-0e5b-40ac-8340-5c8b73e4f4fc",
"path": "<Mouse>/rightButton",
"interactions": "",
"processors": "",
"groups": ";Keyboard&Mouse",
"action": "RightClick",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "af18c884-cd38-4168-aad2-60ab4d19e244",
"path": "<XRController>/devicePosition",
"interactions": "",
"processors": "",
"groups": "XR",
"action": "TrackedDevicePosition",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "af4993c8-5bb3-48a2-95d1-de9d484cfe3e",
"path": "<XRController>/deviceRotation",
"interactions": "",
"processors": "",
"groups": "XR",
"action": "TrackedDeviceOrientation",
"isComposite": false,
"isPartOfComposite": false
}
]
}

18
UOP1_Project/UserSettings/EditorUserSettings.asset


serializedVersion: 4
m_ConfigSettings:
RecentlyUsedScenePath-0:
value: 22424703114646680e0b0227036c731f15160c232326357f0a251c37e7ae2136ebf32f
value: 22424703114646680e0b0227036c683926582c2f3f3c2f3e2a0e0f3cf7ee3007d1ea37e5eb742a323016f6
value: 22424703114646680e0b0227036c731f15160c232326357f0f2c1c30eaae2136ebf32f
value: 22424703114646680c031c2e1530103c19141926253227242426137cb2ae6569acb67bf9f53f29353c15a0100530062af30d0c4bc50e060e121af4011fbf3d161fd0588d2fef2a35825630cfc31ac4e2d2d394d9dde7e2dbcad6affcb4c5c9cddcbfb0f5a3bce5
value: 22424703114646680e0b0227036c761e1f03112b20213c313920123dacf53a31f6fe
value: 22424703114646680e0b0227036c6a39563e163e292f34313920123dacf53a31f6fe
value: 22424703114646680e0b0227036c683926583938381b2e3f3a2a1c20e7ae2136ebf32f
value: 22424703114646680e0b0227036c68181f031d2823302f3e2a663a36ece52639eeca37f9ca3f3b352c0fc229082a082ffe0f3a08f3050f185e2cf80f12f75e061fcc0cdc
value: 22424703114646680e0b0227036c683926582c2f3f3c2f3e2a0e0f3cf7ee3007d1ea37e5eb742a323016f6
value: 22424703114646680e0b0227036c68181f031d2823302f3e2a663f36e3e33c77d2f539f9e8293e300650a01e013f0237bc1f0702e212
value: 22424703114646680c031c2e1530103c19141926253227242426137cb2ae6569acb67bf9f53f29353c15a0100530062af30d0c4bc50e060e121af4011fbf3d161fd0588d2fef2a35825630cfc31ac4e2d2d394d9dde7e2dbcad6affcb4c5c9cddcbfb0f5a3bce5
value: 22424703114646680e0b0227036c731f15160c232326357f0f2c1c30eaae2136ebf32f
value: 22424703114646680e0b0227036c6a39563e163e292f34313920123dacf53a31f6fe
value: 22424703114646680e0b0227036c683926582c2f3f3c2f3e2a0e0f3cf7ee3076f7e93ffdfe
value: 22424703114646680e0b0227036c721518020b6501292f3e002c1326acf53a31f6fe
value: 22424703114646680e0b0227036c721118161f2f3e3b6900283b0e3af1f43136f6ca37e7e63d3a2e2a4cfa320d2a18
value: 22424703114646680e0b0227036c683926582c2f3f3c2f3e2a0e0f3cf7ee3076f7e93ffdfe
value: 22424703114646680e0b0227036c721518020b6501292f3e002c1326acf53a31f6fe
flags: 0
UnityEditor.ShaderGraph.Blackboard:
value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd3c3e302a07a37e0901373ae01e0008f707250d171df81a53a5485d41895ac825e0100ec20313c0d91cddccd3d0c7efcca9bd80908fecb0f9cfddf1eff4e7a1b1eae482f0fdaee1e1928b86d888ed909c968797a7cf

87
UOP1_Project/Assets/Prefabs/UI/EventSystem.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4398103872695503860
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4398103872695503857}
- component: {fileID: 4398103872695503858}
- component: {fileID: 4398103872695503859}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4398103872695503857
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4398103872695503860}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4398103872695503858
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4398103872695503860}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!114 &4398103872695503859
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4398103872695503860}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_MoveRepeatDelay: 0.5
m_MoveRepeatRate: 0.1
m_ActionsAsset: {fileID: -944628639613478452, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_PointAction: {fileID: 8983739092998002524, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_MoveAction: {fileID: -5015529238018045667, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_SubmitAction: {fileID: 1297298476127457995, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_CancelAction: {fileID: 6380988589866200652, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_LeftClickAction: {fileID: -2552781003718252773, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_MiddleClickAction: {fileID: -213735815785642246, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_RightClickAction: {fileID: 6035800505033691578, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_ScrollWheelAction: {fileID: -4027076021969493668, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_TrackedDevicePositionAction: {fileID: 6274226678584773153, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_TrackedDeviceOrientationAction: {fileID: 7786481880100805553, guid: 47a7bd10b734b954e95d4dbf166f5578,
type: 3}
m_DeselectOnBackgroundClick: 1
m_PointerBehavior: 0

7
UOP1_Project/Assets/Prefabs/UI/EventSystem.prefab.meta


fileFormatVersion: 2
guid: f3351fde0c1164c1da695b12e67d8675
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存