diff --git a/Assets/Audio Mixers/MainMixer.mixer b/Assets/Audio Mixers/MainMixer.mixer index 0b872d7..6f1a2e2 100644 --- a/Assets/Audio Mixers/MainMixer.mixer +++ b/Assets/Audio Mixers/MainMixer.mixer @@ -216,13 +216,13 @@ AudioMixerSnapshotController: 11485b2babea73b418583c5e68bf0e01: -49.6 d3d28f4b939c15c4fb46575e1562c52b: 9 6dc2be7b017f6454a88a82cf0827df64: -2565 - 8abcd1dbe0a90d24c82e3c8fe1b5b768: 15.7 + 8abcd1dbe0a90d24c82e3c8fe1b5b768: 14 78fcf9db4a62d1b488ab94c688e1a688: -5.7224774 f19752ebc23b70b42aecce984551e28b: 0 df94a53c2f1911543a5abb9a08a837dd: 77 05a3cc7c5a9b4e4448c07125cb163320: 0.424 7d112fbca2a5dd8459f2c00b517f7bac: 0.52900004 - fd01f6bdeaa870c4688fa6fcad7c3e41: -80 + fd01f6bdeaa870c4688fa6fcad7c3e41: 0 3b873ffd7476b574ab79c605a05a50ff: 0 fb93bc0e4abea1d4e840f1f2832ba33d: 6 a1407a7e6f887dd4eac4400887eda079: 3481 @@ -347,6 +347,8 @@ AudioMixerController: name: Master Volume - guid: da78777609f75db4482d8f0c2a6597d7 name: Diary Volume + - guid: 78fcf9db4a62d1b488ab94c688e1a688 + name: Teleport Volume m_AudioMixerGroupViews: - guids: - cce571dfddcbc694fa5856a9866157f8 @@ -596,7 +598,8 @@ AudioMixerSnapshotController: 9f37ae073eb26e54f93d6ea7c5e77b1b: 2000 d3315d995104d364ab05091350d51b94: 3.4 d3d28f4b939c15c4fb46575e1562c52b: 9 - 8abcd1dbe0a90d24c82e3c8fe1b5b768: 15.7 + 8abcd1dbe0a90d24c82e3c8fe1b5b768: 14 + 78fcf9db4a62d1b488ab94c688e1a688: -6.133707 7d112fbca2a5dd8459f2c00b517f7bac: 0.52900004 fd01f6bdeaa870c4688fa6fcad7c3e41: 0 3b873ffd7476b574ab79c605a05a50ff: 0 diff --git a/Assets/Prefabs/Environment/BurningStick.prefab b/Assets/Prefabs/Environment/BurningStick.prefab index 7c85699..231332d 100644 --- a/Assets/Prefabs/Environment/BurningStick.prefab +++ b/Assets/Prefabs/Environment/BurningStick.prefab @@ -141,6 +141,7 @@ GameObject: - component: {fileID: 2081929903982442016} - component: {fileID: 1226804790312226784} - component: {fileID: 8044237247712289850} + - component: {fileID: 3263701516971022914} m_Layer: 0 m_Name: BurningStick m_TagString: Untagged @@ -228,7 +229,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: IgnitePoint: {fileID: 7948189956267693667} - Grabbed: 0 --- !u!114 &8044237247712289850 MonoBehaviour: m_ObjectHideFlags: 0 @@ -242,6 +242,20 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Quality: {fileID: 11400000, guid: 62d0193d1d08b814d9328f3dd1d117cb, type: 2} + BurningInCampfire: 0 +--- !u!114 &3263701516971022914 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2086008818391599545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c56f91485b827a54282444c63a631645, type: 3} + m_Name: + m_EditorClassIdentifier: + Grabbed: 0 --- !u!1 &2819347287429737535 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Environment/Casette.prefab b/Assets/Prefabs/Environment/Casette.prefab index 61bed6b..29c70f4 100644 --- a/Assets/Prefabs/Environment/Casette.prefab +++ b/Assets/Prefabs/Environment/Casette.prefab @@ -12,6 +12,7 @@ GameObject: - component: {fileID: 388935964095823360} - component: {fileID: 8749723819828979553} - component: {fileID: 7525334960177098028} + - component: {fileID: 8975157805693148889} m_Layer: 13 m_Name: Casette m_TagString: Untagged @@ -165,6 +166,19 @@ AudioSource: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 +--- !u!114 &8975157805693148889 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 388935964095823366} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c56f91485b827a54282444c63a631645, type: 3} + m_Name: + m_EditorClassIdentifier: + Grabbed: 0 --- !u!65 &6986160423568067126 BoxCollider: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Environment/stick.prefab b/Assets/Prefabs/Environment/stick.prefab index a7872ab..0e9ef20 100644 --- a/Assets/Prefabs/Environment/stick.prefab +++ b/Assets/Prefabs/Environment/stick.prefab @@ -57,6 +57,7 @@ GameObject: - component: {fileID: 3556743581346332214} - component: {fileID: 1732996613952540235} - component: {fileID: 7014937997629475779} + - component: {fileID: 1586168142063138938} m_Layer: 10 m_Name: stick m_TagString: Untagged @@ -95,7 +96,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: IgnitePoint: {fileID: 8934967594637573488} - Grabbed: 0 --- !u!54 &1732996613952540235 Rigidbody: m_ObjectHideFlags: 0 @@ -125,6 +125,20 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Quality: {fileID: 11400000, guid: 273b9cf97d0c80e449f24a33a2d261d1, type: 2} + BurningInCampfire: 0 +--- !u!114 &1586168142063138938 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2086008818391599545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c56f91485b827a54282444c63a631645, type: 3} + m_Name: + m_EditorClassIdentifier: + Grabbed: 0 --- !u!1 &7882310482220326929 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/VR/Casette VR.prefab b/Assets/Prefabs/VR/Casette VR.prefab new file mode 100644 index 0000000..aadc487 --- /dev/null +++ b/Assets/Prefabs/VR/Casette VR.prefab @@ -0,0 +1,324 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &748295692191117788 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7463360716497058313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cecbf2dde7aad74e99c3fa1afac72ea, type: 3} + m_Name: + m_EditorClassIdentifier: + Distance: 4 + PickedUp: 0 +--- !u!114 &5464811835824480554 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7463360716497058313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ffefbea063cab884ca33e5a449e5c22c, type: 3} + m_Name: + m_EditorClassIdentifier: + attachmentFlags: 44 + attachmentOffset: {fileID: 0} + catchingSpeedThreshold: -1 + releaseVelocityStyle: 1 + releaseVelocityTimeOffset: -0.011 + scaleReleaseVelocity: 1.1 + scaleReleaseVelocityThreshold: -1 + scaleReleaseVelocityCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0.1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + restoreOriginalParent: 0 + onPickUp: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 748295692191117788} + m_MethodName: Pickup + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + - m_Target: {fileID: 2195718456027732694} + m_MethodName: Grab + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + - m_Target: {fileID: 1989371957929927534} + m_MethodName: PickupVR + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + onDetachFromHand: + m_PersistentCalls: + m_Calls: [] + onHeldUpdate: + m_PersistentCalls: + m_Calls: [] + interactable: {fileID: 0} +--- !u!114 &8327858439675715813 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7463360716497058313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b93b6a877adcbf94c89a9d6e0c0e844d, type: 3} + m_Name: + m_EditorClassIdentifier: + activateActionSetOnAttach: + actionSetPath: + hideHandOnAttach: 0 + hideSkeletonOnAttach: 0 + hideControllerOnAttach: 0 + handAnimationOnPickup: 0 + setRangeOfMotionOnPickup: -1 + useHandObjectAttachmentPoint: 1 + attachEaseIn: 0 + snapAttachEaseInCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + snapAttachEaseInTime: 0.15 + snapAttachEaseInCompleted: 0 + skeletonPoser: {fileID: 0} + handFollowTransform: 1 + highlightOnHover: 1 + hideHighlight: [] + hoverPriority: 0 +--- !u!1001 &7131142377223701519 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823363, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 388935964095823366, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_Name + value: Casette VR + objectReference: {fileID: 0} + - target: {fileID: 388935964095823366, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_Layer + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.x + value: 0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4620539269408403861, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6986160423568067126, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7525334960177098028, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_Volume + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 8521982733029884806, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + propertyPath: m_Layer + value: 10 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 354995f43a462b04db424bdef965fd1d, type: 3} +--- !u!1 &7463360716497058313 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 388935964095823366, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + m_PrefabInstance: {fileID: 7131142377223701519} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1989371957929927534 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 8749723819828979553, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + m_PrefabInstance: {fileID: 7131142377223701519} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7463360716497058313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: df6e90d9f78abce48bed9c6269482e28, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &2195718456027732694 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 8975157805693148889, guid: 354995f43a462b04db424bdef965fd1d, + type: 3} + m_PrefabInstance: {fileID: 7131142377223701519} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7463360716497058313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c56f91485b827a54282444c63a631645, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Prefabs/VR/Casette VR.prefab.meta b/Assets/Prefabs/VR/Casette VR.prefab.meta new file mode 100644 index 0000000..ee5054c --- /dev/null +++ b/Assets/Prefabs/VR/Casette VR.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 110da3f1de00910458a9e4ffd3585f94 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/VR/Stick Spawner VR.prefab b/Assets/Prefabs/VR/Stick Spawner VR.prefab new file mode 100644 index 0000000..751abab --- /dev/null +++ b/Assets/Prefabs/VR/Stick Spawner VR.prefab @@ -0,0 +1,83 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &9034356446809472333 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5375417352542439262, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5825517555167498412, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: StickPrefab + value: + objectReference: {fileID: 2086008818391599545, guid: 80f5f5c732639d14aa44d2839c4e98e3, + type: 3} + - target: {fileID: 5825517555167498412, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: CasettePrefab + value: + objectReference: {fileID: 7463360716497058313, guid: 110da3f1de00910458a9e4ffd3585f94, + type: 3} + - target: {fileID: 8593229712972662916, guid: 083f2630e3468274594f4435b3e82c1d, + type: 3} + propertyPath: m_Name + value: Stick Spawner VR + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 083f2630e3468274594f4435b3e82c1d, type: 3} diff --git a/Assets/Prefabs/VR/Stick Spawner VR.prefab.meta b/Assets/Prefabs/VR/Stick Spawner VR.prefab.meta new file mode 100644 index 0000000..4021beb --- /dev/null +++ b/Assets/Prefabs/VR/Stick Spawner VR.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 561989f4ac9290f4b878a63bd63b181a +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/VR/Stick VR.prefab b/Assets/Prefabs/VR/Stick VR.prefab index 6c66379..c62137f 100644 --- a/Assets/Prefabs/VR/Stick VR.prefab +++ b/Assets/Prefabs/VR/Stick VR.prefab @@ -4899,10 +4899,12 @@ GameObject: - component: {fileID: 1830340994370403595} - component: {fileID: 1732996613952540235} - component: {fileID: 1066568521765371770} + - component: {fileID: 8040624348277143565} - component: {fileID: 2499151591214202486} - - component: {fileID: 5807904180460221178} - component: {fileID: 4109150851726414724} - component: {fileID: 3611004544794653208} + - component: {fileID: 3775824340653869256} + - component: {fileID: 2310007994178076195} m_Layer: 10 m_Name: Stick VR m_TagString: Untagged @@ -4957,7 +4959,7 @@ MonoBehaviour: actionSetPath: hideHandOnAttach: 0 hideSkeletonOnAttach: 0 - hideControllerOnAttach: 0 + hideControllerOnAttach: 1 handAnimationOnPickup: 0 setRangeOfMotionOnPickup: -1 useHandObjectAttachmentPoint: 1 @@ -4993,36 +4995,7 @@ MonoBehaviour: highlightOnHover: 1 hideHighlight: [] hoverPriority: 0 ---- !u!114 &2499151591214202486 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086008818391599545} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e7418c7dd8f977d4e969202d3fa7e926, type: 3} - m_Name: - m_EditorClassIdentifier: - poseEditorExpanded: 1 - blendEditorExpanded: 1 - poseNames: - - StickHoldPose (MAIN) - overridePreviewLeftHandPrefab: {fileID: 1000013348574242, guid: 638779290bce1af49b356f33dcc6fccf, - type: 3} - overridePreviewRightHandPrefab: {fileID: 1000010304998954, guid: 6def53d002137b747aec0b29551e0e25, - type: 3} - skeletonMainPose: {fileID: 11400000, guid: 7d44e06d0a950e84d8906232374c8ac3, type: 2} - skeletonAdditionalPoses: [] - showLeftPreview: 0 - showRightPreview: 0 - previewLeftInstance: {fileID: 0} - previewRightInstance: {fileID: 0} - previewPoseSelection: 0 - blendingBehaviours: [] - scale: 1 ---- !u!114 &5807904180460221178 +--- !u!114 &8040624348277143565 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -5034,7 +5007,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ffefbea063cab884ca33e5a449e5c22c, type: 3} m_Name: m_EditorClassIdentifier: - attachmentFlags: 44 + attachmentFlags: 85 attachmentOffset: {fileID: 0} catchingSpeedThreshold: -1 releaseVelocityStyle: 1 @@ -5068,7 +5041,29 @@ MonoBehaviour: restoreOriginalParent: 0 onPickUp: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 3775824340653869256} + m_MethodName: Pickup + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + - m_Target: {fileID: 2310007994178076195} + m_MethodName: Grab + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 onDetachFromHand: m_PersistentCalls: m_Calls: [] @@ -5076,6 +5071,35 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] interactable: {fileID: 0} +--- !u!114 &2499151591214202486 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2086008818391599545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e7418c7dd8f977d4e969202d3fa7e926, type: 3} + m_Name: + m_EditorClassIdentifier: + poseEditorExpanded: 1 + blendEditorExpanded: 1 + poseNames: + - StickHoldPose (MAIN) + overridePreviewLeftHandPrefab: {fileID: 1000013348574242, guid: 638779290bce1af49b356f33dcc6fccf, + type: 3} + overridePreviewRightHandPrefab: {fileID: 1000010304998954, guid: 6def53d002137b747aec0b29551e0e25, + type: 3} + skeletonMainPose: {fileID: 11400000, guid: 7d44e06d0a950e84d8906232374c8ac3, type: 2} + skeletonAdditionalPoses: [] + showLeftPreview: 0 + showRightPreview: 0 + previewLeftInstance: {fileID: 0} + previewRightInstance: {fileID: 0} + previewPoseSelection: 0 + blendingBehaviours: [] + scale: 1 --- !u!114 &4109150851726414724 MonoBehaviour: m_ObjectHideFlags: 0 @@ -5089,7 +5113,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: IgnitedQuality: {fileID: 11400000, guid: 62d0193d1d08b814d9328f3dd1d117cb, type: 2} - IgniteDuration: 0.25 + IgniteDuration: 1 Ignited: 0 TorchDuration: 60 TorchWarnDuration: 15 @@ -5099,6 +5123,12 @@ MonoBehaviour: TorchLight: {fileID: 8748250233633719603} WarnColor: {r: 1, g: 0.6509804, b: 0.44705883, a: 1} FireVolume: {fileID: 7969813197317806167} + TorchSound: {fileID: 6154545472424041098} + FireClips: + - {fileID: 8300000, guid: 280c9d9eb97f5ce4d857fb945bfddb1e, type: 3} + - {fileID: 8300000, guid: f33dea627b0de8248a82605c4e0e6e71, type: 3} + - {fileID: 8300000, guid: 021edc202d1cd73478de90d9a3ead06e, type: 3} + - {fileID: 8300000, guid: 2d22ab70306de704598b89a705777afb, type: 3} TorchFuel: 0 --- !u!114 &3611004544794653208 MonoBehaviour: @@ -5113,6 +5143,34 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Quality: {fileID: 11400000, guid: 273b9cf97d0c80e449f24a33a2d261d1, type: 2} + BurningInCampfire: 0 +--- !u!114 &3775824340653869256 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2086008818391599545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6cecbf2dde7aad74e99c3fa1afac72ea, type: 3} + m_Name: + m_EditorClassIdentifier: + Distance: 4 + PickedUp: 0 +--- !u!114 &2310007994178076195 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2086008818391599545} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c56f91485b827a54282444c63a631645, type: 3} + m_Name: + m_EditorClassIdentifier: + Grabbed: 0 --- !u!1 &2973616090333718160 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 311e36d..448abb1 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -24719,11 +24719,21 @@ PrefabInstance: propertyPath: Display value: objectReference: {fileID: 5727207770602245685} + - target: {fileID: 6125707628839966529, guid: 558201eae20fa5540a826edb23937665, + type: 3} + propertyPath: m_TargetEye + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6125707628839966535, guid: 558201eae20fa5540a826edb23937665, type: 3} propertyPath: debugLayer.lightMeter.showCurves value: 1 objectReference: {fileID: 0} + - target: {fileID: 6125707628839966535, guid: 558201eae20fa5540a826edb23937665, + type: 3} + propertyPath: antialiasingMode + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6125707630481988370, guid: 558201eae20fa5540a826edb23937665, type: 3} propertyPath: GameState @@ -24941,7 +24951,7 @@ PrefabInstance: - target: {fileID: 5133887194504435357, guid: 8cf3939d3cb6e684c8ac9618e68c8259, type: 3} propertyPath: DisableOnStart - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259, type: 3} diff --git a/Assets/Scenes/VRScene.unity b/Assets/Scenes/VRScene.unity index dbde098..ced9dee 100644 --- a/Assets/Scenes/VRScene.unity +++ b/Assets/Scenes/VRScene.unity @@ -1965,7 +1965,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: GameState: {fileID: 834592896} - Options: {fileID: 5400695019531174118} + Options: {fileID: 637047744} Mixer: {fileID: 24100000, guid: 032de345950918c4e89684078c6a7213, type: 2} PlayingSnapshot: {fileID: -3105936107480203619, guid: 032de345950918c4e89684078c6a7213, type: 2} @@ -2187,24 +2187,32 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 11401046, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} + propertyPath: hoverLayerMask.m_Bits + value: 1024 + objectReference: {fileID: 0} + - target: {fileID: 11401046, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} + propertyPath: hoverSphereRadius + value: 0.15 + objectReference: {fileID: 0} - target: {fileID: 11401046, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} propertyPath: renderModelPrefab value: objectReference: {fileID: 1000012617731570, guid: 4f11c22a3441a46478eb2375b470c660, type: 3} - - target: {fileID: 11401046, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} + - target: {fileID: 11450312, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} propertyPath: hoverLayerMask.m_Bits value: 1024 objectReference: {fileID: 0} + - target: {fileID: 11450312, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} + propertyPath: hoverSphereRadius + value: 0.15 + objectReference: {fileID: 0} - target: {fileID: 11450312, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} propertyPath: renderModelPrefab value: objectReference: {fileID: 1000011547835092, guid: 08a99a73a9931d346a28a8d04f3c2296, type: 3} - - target: {fileID: 11450312, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} - propertyPath: hoverLayerMask.m_Bits - value: 1024 - objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: dc06161b6d97feb419f45f03b62e14b9, type: 3} --- !u!4 &191837989 stripped @@ -6863,6 +6871,49 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 65b9ab5277d05de459f2091021e0ee01, type: 3} +--- !u!1 &637047743 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 637047745} + - component: {fileID: 637047744} + m_Layer: 0 + m_Name: Options + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &637047744 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 637047743} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4082236b98d7bfb42b8cd2b342f7f31c, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &637047745 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 637047743} + 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!1001 &642855297 PrefabInstance: m_ObjectHideFlags: 0 @@ -15704,6 +15755,11 @@ PrefabInstance: propertyPath: m_Name value: Tutorial objectReference: {fileID: 0} + - target: {fileID: 6286624448002602506, guid: 206b40d520e8aba4793f8025a3f69903, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 206b40d520e8aba4793f8025a3f69903, type: 3} --- !u!224 &1427206712 stripped @@ -17206,6 +17262,596 @@ PrefabInstance: propertyPath: m_StaticEditorFlags value: 4294967295 objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.size + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MinDistance + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MaxDistance + value: 1000 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].time + value: 0.0006 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inSlope + value: -1.4578123 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outSlope + value: -1.4578123 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].time + value: 0.061988056 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].value + value: 0.07692528 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inSlope + value: -1.0006003 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outSlope + value: -1.0006003 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inWeight + value: 0.33333334 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outWeight + value: 0.33333334 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].value + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inSlope + value: -0.04162534 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].outSlope + value: -0.04162534 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].time + value: 0.0048 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].value + value: 0.125 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].inSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].outSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].time + value: 0.011331873 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].value + value: 0.07778931 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].inSlope + value: -3.9928083 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outSlope + value: -3.9928083 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].time + value: 0.026119862 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].value + value: 0.046539307 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].inSlope + value: -1.004274 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outSlope + value: -1.004274 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].time + value: 0.048783608 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].value + value: 0.02835083 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].inSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].outSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].time + value: 0.090639725 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].value + value: 0.012908936 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].inSlope + value: -0.10176578 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].outSlope + value: -0.10176578 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].time + value: 0.17896774 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].value + value: 0.006439209 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inSlope + value: -0.025359087 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outSlope + value: -0.025359087 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].time + value: 0.3072 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].value + value: 0.001953125 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].inSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].outSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].time + value: 0.6144 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].value + value: 0.0009765625 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].inSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].outSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].value + value: 0.0006 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].inSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].outSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inWeight + value: 0.92835706 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outWeight + value: 0.5269877 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 957089656851647374, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inWeight + value: 0.19367497 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.size + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MinDistance + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MaxDistance + value: 1000 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].time + value: 0.0006 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inSlope + value: -1.4578123 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outSlope + value: -1.4578123 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].time + value: 0.061988056 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].value + value: 0.07692528 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inSlope + value: -1.0006003 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outSlope + value: -1.0006003 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inWeight + value: 0.33333334 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outWeight + value: 0.33333334 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].value + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inSlope + value: -0.04162534 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].outSlope + value: -0.04162534 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].time + value: 0.0048 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].value + value: 0.125 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].inSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].outSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].time + value: 0.011331873 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].value + value: 0.07778931 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].inSlope + value: -3.9928083 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outSlope + value: -3.9928083 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].time + value: 0.026119862 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].value + value: 0.046539307 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].inSlope + value: -1.004274 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outSlope + value: -1.004274 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].time + value: 0.048783608 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].value + value: 0.02835083 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].inSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].outSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].time + value: 0.090639725 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].value + value: 0.012908936 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].inSlope + value: -0.10176578 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].outSlope + value: -0.10176578 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].time + value: 0.17896774 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].value + value: 0.006439209 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inSlope + value: -0.025359087 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outSlope + value: -0.025359087 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].time + value: 0.3072 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].value + value: 0.001953125 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].inSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].outSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].time + value: 0.6144 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].value + value: 0.0009765625 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].inSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].outSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].value + value: 0.0006 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].inSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].outSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inWeight + value: 0.92835706 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outWeight + value: 0.5269877 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 964052589141395917, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inWeight + value: 0.19367497 + objectReference: {fileID: 0} - target: {fileID: 986826787110512831, guid: 8ee6eecf5317b4841817712d24763e37, type: 3} propertyPath: GameState @@ -17241,6 +17887,316 @@ PrefabInstance: propertyPath: m_StaticEditorFlags value: 0 objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.size + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MinDistance + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: MaxDistance + value: 1000 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].time + value: 0.0023299651 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inSlope + value: -3.5449183 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outSlope + value: -3.5449183 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].inWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].outWeight + value: 0.032347478 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].value + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inSlope + value: -0.10039894 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outSlope + value: -0.10039894 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].inWeight + value: 0.22331738 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[1].outWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].time + value: 0.0024 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].value + value: 0.25 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inSlope + value: -104.20816 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].outSlope + value: -104.20816 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].time + value: 0.0048 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].value + value: 0.125 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].inSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[3].outSlope + value: -26.05204 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].time + value: 0.0096 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].value + value: 0.0625 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].inSlope + value: -6.51301 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outSlope + value: -6.51301 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].time + value: 0.027851734 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].value + value: 0.04144287 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].inSlope + value: -1.6282525 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outSlope + value: -1.6282525 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].time + value: 0.055699654 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].value + value: 0.02835083 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].inSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[6].outSlope + value: -0.40706313 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].time + value: 0.1010157 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].value + value: 0.04598999 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].inSlope + value: -0.030134533 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].outSlope + value: -0.030134533 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].time + value: 0.20722702 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].value + value: 0.029388428 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inSlope + value: -0.025441445 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outSlope + value: -0.025441445 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].time + value: 0.33661896 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].value + value: 0.02230835 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].inSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[9].outSlope + value: -0.0063603614 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].time + value: 0.6144 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].value + value: 0.0009765625 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].inSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[10].outSlope + value: -0.0015900903 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].time + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].value + value: 0.0006 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].inSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[11].outSlope + value: -0.0006002403 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].inWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[8].outWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[5].outWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[4].outWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[2].inWeight + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[7].outWeight + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: rolloffCustomCurve.m_Curve.Array.data[0].value + value: 1.0050964 + objectReference: {fileID: 0} + - target: {fileID: 6967554575247233918, guid: 8ee6eecf5317b4841817712d24763e37, + type: 3} + propertyPath: m_Volume + value: 0.5 + objectReference: {fileID: 0} - target: {fileID: 8265150240760341263, guid: 8ee6eecf5317b4841817712d24763e37, type: 3} propertyPath: m_LocalPosition.x @@ -18396,7 +19352,7 @@ Transform: - {fileID: 869147415} - {fileID: 1060470479} m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &1672333786 PrefabInstance: @@ -21580,7 +22536,7 @@ RectTransform: - {fileID: 1344354208} - {fileID: 429180126} m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -23810,7 +24766,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!114 &2115104244 MonoBehaviour: m_ObjectHideFlags: 0 @@ -23857,7 +24813,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &2116820717 PrefabInstance: @@ -24093,7 +25049,7 @@ PrefabInstance: - target: {fileID: 531861614786402147, guid: 0a942b74adc03b248ac74ce8af504ca5, type: 3} propertyPath: m_RootOrder - value: 6 + value: 2 objectReference: {fileID: 0} - target: {fileID: 531861614786402147, guid: 0a942b74adc03b248ac74ce8af504ca5, type: 3} @@ -24379,7 +25335,7 @@ PrefabInstance: - target: {fileID: 5400695020334462789, guid: 2cd64e49ad7ad1c4bb4a4264703d7915, type: 3} propertyPath: m_RootOrder - value: 5 + value: 1 objectReference: {fileID: 0} - target: {fileID: 5400695020334462789, guid: 2cd64e49ad7ad1c4bb4a4264703d7915, type: 3} @@ -24981,5 +25937,11 @@ PrefabInstance: propertyPath: RandomNudge value: 4 objectReference: {fileID: 0} + - target: {fileID: 9114811099361258703, guid: dce6ed08bb6da0a438a43d72fdf944da, + type: 3} + propertyPath: SpawnableTrees.Array.data[0] + value: + objectReference: {fileID: 729921478388610505, guid: 561989f4ac9290f4b878a63bd63b181a, + type: 3} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: dce6ed08bb6da0a438a43d72fdf944da, type: 3} diff --git a/Assets/Scripts/AudioMaster.cs b/Assets/Scripts/AudioMaster.cs index bd0ee4e..d743d4c 100644 --- a/Assets/Scripts/AudioMaster.cs +++ b/Assets/Scripts/AudioMaster.cs @@ -29,6 +29,7 @@ public class AudioMaster : MonoBehaviour { Mixer.SetFloat("Ambient Volume", ConvertRatioToDecibel(Options.AmbientVolume)); Mixer.SetFloat("Footstep Volume", ConvertRatioToDecibel(Options.FootstepVolume)); Mixer.SetFloat("Diary Volume", ConvertRatioToDecibel(Options.DiaryVolume)); + Mixer.SetFloat("Teleport Volume", ConvertRatioToDecibel(Options.TeleportVolume)); } private float ConvertRatioToDecibel(float x) { diff --git a/Assets/Scripts/Burnable.cs b/Assets/Scripts/Burnable.cs index f205139..96bb22b 100644 --- a/Assets/Scripts/Burnable.cs +++ b/Assets/Scripts/Burnable.cs @@ -4,4 +4,5 @@ using UnityEngine; public class Burnable : MonoBehaviour { public BurnQuality Quality; + public bool BurningInCampfire = false; } diff --git a/Assets/Scripts/Campfire.cs b/Assets/Scripts/Campfire.cs index 85304f8..5e5a6c5 100644 --- a/Assets/Scripts/Campfire.cs +++ b/Assets/Scripts/Campfire.cs @@ -109,6 +109,7 @@ public class Campfire : MonoBehaviour { NextLogTime = Time.time + Burnable.Quality.BurnTime; } LogQueue.Add(Burnable); + Burnable.BurningInCampfire = true; } } } @@ -116,8 +117,9 @@ public class Campfire : MonoBehaviour { private void OnCollisionExit(Collision c) { if (c.collider.attachedRigidbody != null && c.collider.attachedRigidbody) { Burnable Burnable = c.collider.attachedRigidbody.GetComponent(); - if (Burnable != null) { + if (Burnable != null && LogQueue.Contains(Burnable)) { LogQueue.Remove(Burnable); + Burnable.BurningInCampfire = false; } } } diff --git a/Assets/Scripts/CasettePickup.cs b/Assets/Scripts/CasettePickup.cs index eb55a1b..4eac558 100644 --- a/Assets/Scripts/CasettePickup.cs +++ b/Assets/Scripts/CasettePickup.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(AudioSource))] +[RequireComponent(typeof(PickupStatus))] public class CasettePickup : MonoBehaviour { public AudioClip[] Clips; public string DisplayPrompt { @@ -15,17 +16,18 @@ public class CasettePickup : MonoBehaviour { return Source.isPlaying; } } - public bool PickedUp = false; private AudioSource Source; + private PickupStatus Pickup; private void Awake() { Source = GetComponent(); + Pickup = GetComponent(); CasetteProgress.CasetteCount = Clips.Length; } private void Update() { - if (PickedUp) { + if (Pickup.Grabbed) { transform.localScale = Vector3.Lerp(transform.localScale, Vector3.zero, 10f * Time.deltaTime); } @@ -35,7 +37,7 @@ public class CasettePickup : MonoBehaviour { } public void Play(CasettePickup previous) { - PickedUp = true; + Pickup.Grab(); int Index = CasetteProgress.PlayNext(); if (Index != -1) { if (previous != null) { @@ -45,4 +47,10 @@ public class CasettePickup : MonoBehaviour { CasetteProgress.CurrentlyPlaying = Source; } } + + private static CasettePickup PreviousPickup = null; + public void PickupVR() { + Play(PreviousPickup); + PreviousPickup = this; + } } diff --git a/Assets/Scripts/InteractibleEnabler.cs b/Assets/Scripts/InteractibleEnabler.cs new file mode 100644 index 0000000..0c1fb68 --- /dev/null +++ b/Assets/Scripts/InteractibleEnabler.cs @@ -0,0 +1,40 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using Valve.VR.InteractionSystem; + +/** + * Enables the Throwable and Interactible components once the player comes close enough. + */ +public class InteractibleEnabler : MonoBehaviour { + public float Distance; + [Tooltip("True after the player has picked this thing up. Used to avoid glitches related to disabled Interactables when they're in use.")] + public bool PickedUp; + + private Transform Player; + private Interactable Interactable; + private Throwable Throwable; + private float SqrDistance; + + private void Awake() { + Player = GameObject.FindGameObjectWithTag("Player").transform; + Throwable = GetComponent(); + Interactable = GetComponent(); + Update(); + } + + private void Update() { + if (PickedUp) { + Throwable.enabled = true; + Interactable.enabled = true; + } else { + bool InRange = (Player.position - transform.position).magnitude < Distance; + Throwable.enabled = InRange; + Interactable.enabled = InRange; + } + } + + public void Pickup() { + PickedUp = true; + } +} diff --git a/Assets/Scripts/InteractibleEnabler.cs.meta b/Assets/Scripts/InteractibleEnabler.cs.meta new file mode 100644 index 0000000..0ad99a4 --- /dev/null +++ b/Assets/Scripts/InteractibleEnabler.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6cecbf2dde7aad74e99c3fa1afac72ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Item.cs b/Assets/Scripts/Item.cs index 794a219..2995f67 100644 --- a/Assets/Scripts/Item.cs +++ b/Assets/Scripts/Item.cs @@ -4,6 +4,7 @@ using UnityEngine; [RequireComponent(typeof(Rigidbody))] [RequireComponent(typeof(Burnable))] +[RequireComponent(typeof(PickupStatus))] public class Item : MonoBehaviour { public Transform IgnitePoint; public BurnQuality Quality { @@ -12,9 +13,7 @@ public class Item : MonoBehaviour { } } - [Header("Runtime values")] - public bool Grabbed = false; - + private PickupStatus Pickup; private Burnable Burnable; private Rigidbody Body; private Transform World; @@ -26,11 +25,12 @@ public class Item : MonoBehaviour { private void Awake() { Burnable = GetComponent(); Body = GetComponent(); + Pickup = GetComponent(); World = GameObject.FindGameObjectWithTag("World").transform; } private void Update() { - if (Grabbed) { + if (Pickup.Grabbed) { transform.localPosition = Vector3.Lerp(transform.localPosition, GrabOffset, 10f * Time.deltaTime); transform.localRotation = Quaternion.Slerp(transform.localRotation, GrabRotation, 10f * Time.deltaTime); } else if (BeingPlaced) { @@ -53,13 +53,12 @@ public class Item : MonoBehaviour { Vector3 DirectionOffset = new Vector3(Random.value - 0.5f, Random.value - 0.5f, 0) * 0.8f; GrabRotation = Quaternion.LookRotation(Vector3.down, (Vector3.forward + DirectionOffset).normalized); Body.isKinematic = true; - Grabbed = true; + Pickup.Grab(); } public void Drop(Vector3 where) { transform.parent = World; TargetPosition = where; BeingPlaced = true; - Grabbed = false; } } diff --git a/Assets/Scripts/ItemVR.cs b/Assets/Scripts/ItemVR.cs index 4ad52b7..20177fc 100644 --- a/Assets/Scripts/ItemVR.cs +++ b/Assets/Scripts/ItemVR.cs @@ -20,6 +20,8 @@ public class ItemVR : MonoBehaviour { public Light TorchLight; public Color WarnColor; public GameObject FireVolume; + public AudioSource TorchSound; + public AudioClip[] FireClips; [Header("Runtime values")] public float TorchFuel; @@ -29,14 +31,20 @@ public class ItemVR : MonoBehaviour { private float IgnitionStartTime = -1; private Color NormalColor; + private Vector3 LastPosition; + private void Start() { Burnable = GetComponent(); NormalColor = TorchLight.color; TorchObject.SetActive(Ignited); StickObject.SetActive(!Ignited); + LastPosition = transform.position; } private void Update() { + Vector3 Velocity = transform.position - LastPosition; + LastPosition = transform.position; + if (Ignited && TorchLight.enabled) { TorchFuel -= Time.deltaTime; if (TorchFuel < TorchWarnDuration) { @@ -44,6 +52,15 @@ public class ItemVR : MonoBehaviour { } else { TorchLight.color = Color.Lerp(TorchLight.color, NormalColor, 5f * Time.deltaTime); } + + if ((TorchSound.clip.length - TorchSound.time) <= Time.deltaTime || !TorchSound.isPlaying) { + TorchSound.clip = FireClips[Random.Range(0, FireClips.Length)]; + TorchSound.time = 0; + TorchSound.Play(); + } + float FuelFactor = 1f / (Mathf.Max(0, TorchDuration + 0.5f - TorchFuel) * 4f + 1); + TorchSound.volume = 0.4f + 0.6f * FuelFactor - (TorchFuel < TorchWarnDuration ? 0.3f : 0); + if (TorchFuel <= 0) { FireParticles.Stop(); FireVolume.layer = gameObject.layer; @@ -52,7 +69,7 @@ public class ItemVR : MonoBehaviour { TorchLight.enabled = false; } } - } else if (!Ignited && IgnitionStartTime != -1 && Time.time - IgnitionStartTime >= IgniteDuration) { + } else if (!Ignited && !Burnable.BurningInCampfire && IgnitionStartTime != -1 && Time.time - IgnitionStartTime >= IgniteDuration) { Ignited = true; TorchFuel = TorchDuration; TorchObject.SetActive(true); diff --git a/Assets/Scripts/Options.cs b/Assets/Scripts/Options.cs index 29c2a74..485275c 100644 --- a/Assets/Scripts/Options.cs +++ b/Assets/Scripts/Options.cs @@ -10,16 +10,18 @@ public class Options : MonoBehaviour { public float AmbientVolume { get; set; } public float FootstepVolume { get; set; } public float DiaryVolume { get; set; } + public float TeleportVolume { get; set; } private void Awake() { InvertMouseX = false; InvertMouseY = false; CameraBobbing = true; MouseSensitivity = 2f; - MasterVolume = 0.3f; + MasterVolume = 0.5f; CampfireVolume = 1f; AmbientVolume = 1f; FootstepVolume = 1f; DiaryVolume = 1f; + TeleportVolume = 0.1f; } } diff --git a/Assets/Scripts/PickupStatus.cs b/Assets/Scripts/PickupStatus.cs new file mode 100644 index 0000000..e75580b --- /dev/null +++ b/Assets/Scripts/PickupStatus.cs @@ -0,0 +1,10 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class PickupStatus : MonoBehaviour { + public bool Grabbed = false; + public void Grab() { + Grabbed = true; + } +} diff --git a/Assets/Scripts/PickupStatus.cs.meta b/Assets/Scripts/PickupStatus.cs.meta new file mode 100644 index 0000000..0dfb745 --- /dev/null +++ b/Assets/Scripts/PickupStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c56f91485b827a54282444c63a631645 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/StickSpawner.cs b/Assets/Scripts/StickSpawner.cs index 03c8376..417e26d 100644 --- a/Assets/Scripts/StickSpawner.cs +++ b/Assets/Scripts/StickSpawner.cs @@ -18,9 +18,7 @@ public class StickSpawner : MonoBehaviour { private float LastSpawn; private bool CanSpawnNew = true; - private bool LastSpawnedWasCasette = false; - private Item SpawnedStick = null; - private CasettePickup SpawnedCasette = null; + private PickupStatus SpawnedPickup; void Awake() { Player = GameObject.FindGameObjectWithTag("Player"); @@ -29,7 +27,7 @@ public class StickSpawner : MonoBehaviour { void Update() { if (!CanSpawnNew) { - if ((LastSpawnedWasCasette && (SpawnedCasette == null || SpawnedCasette.PickedUp)) || (!LastSpawnedWasCasette && SpawnedStick.Grabbed)) { + if (SpawnedPickup == null || SpawnedPickup.Grabbed) { CanSpawnNew = true; } else { return; @@ -47,18 +45,10 @@ public class StickSpawner : MonoBehaviour { var SpawnedThing = StickPrefab; if (Random.value <= CasetteChance) { SpawnedThing = CasettePrefab; - LastSpawnedWasCasette = true; - } else { - LastSpawnedWasCasette = false; } CanSpawnNew = false; var Spawned = GameObject.Instantiate(SpawnedThing, transform.position + Vector3.up * 2, Random.rotation); - if (LastSpawnedWasCasette) { - SpawnedCasette = Spawned.GetComponent(); - } else { - SpawnedStick = Spawned.GetComponent(); - } + SpawnedPickup = Spawned.GetComponent(); } - } } diff --git a/Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs b/Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs index f175545..6e4d905 100644 --- a/Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs +++ b/Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs @@ -1208,7 +1208,7 @@ namespace Valve.VR.InteractionSystem } - if (attachedInfo.interactable.attachEaseIn) + if (attachedInfo.interactable != null && attachedInfo.interactable.attachEaseIn) { float t = Util.RemapNumberClamped(Time.time, attachedInfo.attachTime, attachedInfo.attachTime + attachedInfo.interactable.snapAttachEaseInTime, 0.0f, 1.0f); if (t < 1.0f)