cam things

This commit is contained in:
Crizomb 2025-01-27 23:38:26 +01:00
parent afe60bae57
commit e9af1b413a
7 changed files with 3647 additions and 129 deletions

View file

@ -14,7 +14,7 @@ GameObject:
- component: {fileID: 1472681377386678432} - component: {fileID: 1472681377386678432}
m_Layer: 0 m_Layer: 0
m_Name: Camera m_Name: Camera
m_TagString: Untagged m_TagString: MainCamera
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0

View file

@ -59,7 +59,7 @@ MonoBehaviour:
m_ActionEvents: m_ActionEvents:
- m_PersistentCalls: - m_PersistentCalls:
m_Calls: m_Calls:
- m_Target: {fileID: 5643982307560189194, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3} - m_Target: {fileID: 1472681377386678432, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
m_TargetAssemblyTypeName: CameraMouvement, Assembly-CSharp m_TargetAssemblyTypeName: CameraMouvement, Assembly-CSharp
m_MethodName: HandleCameraMovement m_MethodName: HandleCameraMovement
m_Mode: 0 m_Mode: 0

View file

@ -12,6 +12,10 @@ PrefabInstance:
propertyPath: m_Height propertyPath: m_Height
value: 1.9 value: 1.9
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1085507300097694875, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1209043989823703600, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - target: {fileID: 1209043989823703600, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 0
@ -32,10 +36,22 @@ PrefabInstance:
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1854268353119403178, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2076979688870881298, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - target: {fileID: 2076979688870881298, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Name propertyPath: m_Name
value: BaseZombie value: BaseZombie
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2076979688870881298, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2572766376840025726, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3092074377783379531, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - target: {fileID: 3092074377783379531, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 0 value: 0
@ -96,6 +112,10 @@ PrefabInstance:
propertyPath: m_ConstrainProportionsScale propertyPath: m_ConstrainProportionsScale
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5811210244409818000, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5811210244409818000, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - target: {fileID: 5811210244409818000, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_AngularSpeed propertyPath: m_AngularSpeed
value: 240 value: 240
@ -104,6 +124,18 @@ PrefabInstance:
propertyPath: m_ObstacleAvoidanceType propertyPath: m_ObstacleAvoidanceType
value: 2 value: 2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5894882180728040511, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6587310683195830629, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8213395333053285225, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8213395333053285225, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - target: {fileID: 8213395333053285225, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: <Armor>k__BackingField propertyPath: <Armor>k__BackingField
value: 2 value: 2
@ -116,6 +148,10 @@ PrefabInstance:
propertyPath: <CurrentHealth>k__BackingField propertyPath: <CurrentHealth>k__BackingField
value: 100 value: 100
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8908285060348773052, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: m_RemovedComponents:
- {fileID: 7841837150169133400, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - {fileID: 7841837150169133400, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}
- {fileID: 1284886913308718791, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3} - {fileID: 1284886913308718791, guid: 8094e6afe32f290e6987d6a2fc43119d, type: 3}

File diff suppressed because it is too large Load diff

View file

@ -413,82 +413,20 @@ PrefabInstance:
- target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3} - target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3}
propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_Target propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_Target
value: value:
objectReference: {fileID: 646904534} objectReference: {fileID: 1388755017}
- target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3} - target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3}
propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_CallState propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 1 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3} - target: {fileID: 7444322309943002451, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3}
propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_MethodName propertyPath: m_ActionEvents.Array.data[0].m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: value: HandleCameraMovement
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3} m_SourcePrefab: {fileID: 100100000, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3}
--- !u!1 &646904534 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4421777460897078516, guid: e0cd2add4bbdcf59a8c46048ba422a58, type: 3}
m_PrefabInstance: {fileID: 646904533}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1013863815
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3438332948696494241, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_Name
value: Main Camera
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.x
value: -24.502487
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.y
value: 25.303343
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.z
value: -23.157642
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.w
value: -0.8517117
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.x
value: -0.3624081
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.y
value: -0.34825203
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.z
value: 0.14821626
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
--- !u!1 &1257148811 --- !u!1 &1257148811
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -529,6 +467,78 @@ Transform:
- {fileID: 7179540806177152012} - {fileID: 7179540806177152012}
m_Father: {fileID: 543450652418139313} m_Father: {fileID: 543450652418139313}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1388755017 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 1472681377386678432, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
m_PrefabInstance: {fileID: 2024990460}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1f894d8f1147824dca47609a059e3c28, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2024990460
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1472681377386678432, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: moveSpeed
value: 10
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.x
value: -27.113575
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.y
value: 23.367012
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.z
value: -22.036797
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.w
value: -0.7988061
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.x
value: -0.30642948
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.y
value: -0.48334348
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.z
value: 0.18544272
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8911717581403283216, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_Name
value: Camera
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
--- !u!1001 &2055511587 --- !u!1001 &2055511587
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -5038,5 +5048,5 @@ SceneRoots:
- {fileID: 2055511587} - {fileID: 2055511587}
- {fileID: 32775052} - {fileID: 32775052}
- {fileID: 646904533} - {fileID: 646904533}
- {fileID: 1013863815}
- {fileID: 112946587} - {fileID: 112946587}
- {fileID: 2024990460}

View file

@ -585,63 +585,6 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6ad55a398b7989c9cbd10b7804913360, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 6ad55a398b7989c9cbd10b7804913360, type: 3}
--- !u!1001 &1053111894
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3438332948696494241, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_Name
value: Main Camera
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7458214
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.x
value: 0.1732985
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.y
value: 0.6265177
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalRotation.z
value: -0.14558041
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368728611589421352, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1d9870263eb56a06aa2968e3d7eee3ef, type: 3}
--- !u!1 &1164625966 --- !u!1 &1164625966
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -959,6 +902,67 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a0750dd4706e5480da2ad597b62d8531, type: 3} m_SourcePrefab: {fileID: 100100000, guid: a0750dd4706e5480da2ad597b62d8531, type: 3}
--- !u!1001 &2094749809
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1472681377386678432, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: moveSpeed
value: 15
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.x
value: -29.180618
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.y
value: 82.724
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalPosition.z
value: -84.00799
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.w
value: -0.866493
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.x
value: -0.40771976
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.y
value: -0.2605984
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalRotation.z
value: 0.12265012
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4530405755252736471, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8911717581403283216, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
propertyPath: m_Name
value: Camera
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e06ef2ca4b6f9e4eabce443a22c76cc7, type: 3}
--- !u!1660057539 &9223372036854775807 --- !u!1660057539 &9223372036854775807
SceneRoots: SceneRoots:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -969,5 +973,5 @@ SceneRoots:
- {fileID: 2051934862} - {fileID: 2051934862}
- {fileID: 1414126144} - {fileID: 1414126144}
- {fileID: 300434390} - {fileID: 300434390}
- {fileID: 1053111894}
- {fileID: 936761048} - {fileID: 936761048}
- {fileID: 2094749809}

View file

@ -8,25 +8,21 @@ public class CameraMouvement : MonoBehaviour
private Vector2 _moveInput; private Vector2 _moveInput;
public void HandleCameraMovement(InputAction.CallbackContext context) public void HandleCameraMovement(InputAction.CallbackContext context)
{ {
print("Handle Camera");
_moveInput = Vector2.zero; _moveInput = Vector2.zero;
if (context.phase == InputActionPhase.Performed) if (context.phase == InputActionPhase.Performed)
{ {
_moveInput = context.ReadValue<Vector2>(); _moveInput = context.ReadValue<Vector2>();
print("Move Input");
print(_moveInput); print(_moveInput);
} }
} }
// Start is called once before the first execution of Update after the MonoBehaviour is created // Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() void Start()
{ {
print("START CAMERA MY BOYYY");
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
print("Update");
var mouvement = moveSpeed * Time.deltaTime * (new Vector3(_moveInput.y, 0, -_moveInput.x)); var mouvement = moveSpeed * Time.deltaTime * (new Vector3(_moveInput.y, 0, -_moveInput.x));
transform.Translate(mouvement, Space.World); transform.Translate(mouvement, Space.World);
} }