From 99819bdfeaa69d68ae2b3c3f0b8d786b50c9aa29 Mon Sep 17 00:00:00 2001 From: Ktaylor Date: Sun, 21 Apr 2024 09:30:49 -0400 Subject: [PATCH] Added Spinning Sickles Fun little sickles --- Assets/Obstacles/Mavrik_Sword_Spinning.prefab | 303 ++++++++++++++++++ .../Mavrik_Sword_Spinning.prefab.meta | 7 + Assets/Obstacles/Mavrik_Sword_medium.prefab | 97 ++++++ .../Obstacles/Mavrik_Sword_medium.prefab.meta | 9 + Assets/Scenes/TestControls.unity | 139 ++++---- Assets/Scripts/Spin.cs | 29 ++ Assets/Scripts/Spin.cs.meta | 11 + 7 files changed, 525 insertions(+), 70 deletions(-) create mode 100644 Assets/Obstacles/Mavrik_Sword_Spinning.prefab create mode 100644 Assets/Obstacles/Mavrik_Sword_Spinning.prefab.meta create mode 100644 Assets/Obstacles/Mavrik_Sword_medium.prefab create mode 100644 Assets/Obstacles/Mavrik_Sword_medium.prefab.meta create mode 100644 Assets/Scripts/Spin.cs create mode 100644 Assets/Scripts/Spin.cs.meta diff --git a/Assets/Obstacles/Mavrik_Sword_Spinning.prefab b/Assets/Obstacles/Mavrik_Sword_Spinning.prefab new file mode 100644 index 00000000..77275aa4 --- /dev/null +++ b/Assets/Obstacles/Mavrik_Sword_Spinning.prefab @@ -0,0 +1,303 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &1946705203569613395 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3574066194851122020} + - component: {fileID: 1925271753506268451} + m_Layer: 0 + m_Name: Mavrik_Sword_Spinning + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3574066194851122020 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1946705203569613395} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1674005170711084260} + - {fileID: 1083514133312506310} + - {fileID: 686146779665115163} + - {fileID: 5551598098542832212} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1925271753506268451 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1946705203569613395} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b08341faf2eacab4fab7b1cf26c86b25, type: 3} + m_Name: + m_EditorClassIdentifier: + Speed: 2 +--- !u!1001 &687677053368700689 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 3574066194851122020} + m_Modifications: + - target: {fileID: 1071554386029472, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_Name + value: Mavrik_Sword_medium_3 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.x + value: 0.383 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.y + value: 0.302 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.z + value: -0.124 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.w + value: 0.49858043 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.x + value: -0.5014155 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.y + value: -0.5014156 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.z + value: 0.49858046 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: -90.325 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 90 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} +--- !u!4 &686146779665115163 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, + type: 3} + m_PrefabInstance: {fileID: 687677053368700689} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &1083074082464345804 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 3574066194851122020} + m_Modifications: + - target: {fileID: 1071554386029472, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_Name + value: Mavrik_Sword_medium_2 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.x + value: 0.383 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.y + value: 0.302 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.z + value: 0.133 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.w + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.z + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 90 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} +--- !u!4 &1083514133312506310 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, + type: 3} + m_PrefabInstance: {fileID: 1083074082464345804} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &1672509656379661294 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 3574066194851122020} + m_Modifications: + - target: {fileID: 1071554386029472, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_Name + value: 'Mavrik_Sword_medium_1 ' + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.x + value: 0.2842522 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.y + value: 0.3015899 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.z + value: 0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 90 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} +--- !u!4 &1674005170711084260 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, + type: 3} + m_PrefabInstance: {fileID: 1672509656379661294} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &5549997628934851934 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 3574066194851122020} + m_Modifications: + - target: {fileID: 1071554386029472, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_Name + value: Mavrik_Sword_medium_4 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.x + value: 0.511 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.y + value: 0.302 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalPosition.z + value: -0.002 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalRotation.z + value: -0.7071068 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: -90 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1f0dec2718af1624e8a3fd30453588a4, type: 3} +--- !u!4 &5551598098542832212 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4134707831580426, guid: 1f0dec2718af1624e8a3fd30453588a4, + type: 3} + m_PrefabInstance: {fileID: 5549997628934851934} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Obstacles/Mavrik_Sword_Spinning.prefab.meta b/Assets/Obstacles/Mavrik_Sword_Spinning.prefab.meta new file mode 100644 index 00000000..83c57ef7 --- /dev/null +++ b/Assets/Obstacles/Mavrik_Sword_Spinning.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b4dc7aa08b379624c8c5295a57a26267 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Obstacles/Mavrik_Sword_medium.prefab b/Assets/Obstacles/Mavrik_Sword_medium.prefab new file mode 100644 index 00000000..b7251f1f --- /dev/null +++ b/Assets/Obstacles/Mavrik_Sword_medium.prefab @@ -0,0 +1,97 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 1071554386029472} + m_IsPrefabParent: 1 +--- !u!1 &1071554386029472 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 5 + m_Component: + - component: {fileID: 4134707831580426} + - component: {fileID: 33679651315416416} + - component: {fileID: 23072340870366182} + - component: {fileID: 64811454570802422} + m_Layer: 0 + m_Name: Mavrik_Sword_medium + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4134707831580426 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1071554386029472} + m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23072340870366182 +MeshRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1071554386029472} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_Materials: + - {fileID: 2100000, guid: 2a12d3fc0532ba64e972160db18dfd99, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33679651315416416 +MeshFilter: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1071554386029472} + m_Mesh: {fileID: 4300000, guid: b55e95df0419bb3478809c6738befe8e, type: 3} +--- !u!64 &64811454570802422 +MeshCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1071554386029472} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Convex: 1 + m_InflateMesh: 0 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 43003313864153846, guid: d21bea4df3a24554aa7f28c15a331152, type: 2} diff --git a/Assets/Obstacles/Mavrik_Sword_medium.prefab.meta b/Assets/Obstacles/Mavrik_Sword_medium.prefab.meta new file mode 100644 index 00000000..ddb80f9c --- /dev/null +++ b/Assets/Obstacles/Mavrik_Sword_medium.prefab.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1f0dec2718af1624e8a3fd30453588a4 +timeCreated: 1606271840 +licenseType: Store +NativeFormatImporter: + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/TestControls.unity b/Assets/Scenes/TestControls.unity index b1fff22d..0f9928a5 100644 --- a/Assets/Scenes/TestControls.unity +++ b/Assets/Scenes/TestControls.unity @@ -1232,75 +1232,6 @@ Transform: m_Children: [] m_Father: {fileID: 2041401174} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &752651539 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 5852534905605273225, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_Name - value: Mavrik_Moving_Floor_LR (1) - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalPosition.x - value: 3.068009 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalPosition.y - value: 0.08435106 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalPosition.z - value: -2.0062337 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9202412964388832783, guid: 8bb5b5825668a3a4d843e44289f40265, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: - - {fileID: 4070743036836625286, guid: 8bb5b5825668a3a4d843e44289f40265, type: 3} - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 8bb5b5825668a3a4d843e44289f40265, type: 3} --- !u!1001 &756557177 PrefabInstance: m_ObjectHideFlags: 0 @@ -2606,6 +2537,74 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 8bb5b5825668a3a4d843e44289f40265, type: 3} +--- !u!1001 &1479721660 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1946705203569613395, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_Name + value: Mavrik_Sword_Spinning + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalPosition.x + value: -2.0544503 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalPosition.y + value: 0.049999952 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalPosition.z + value: -1.085876 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3574066194851122020, guid: b4dc7aa08b379624c8c5295a57a26267, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b4dc7aa08b379624c8c5295a57a26267, type: 3} --- !u!1 &1507380958 GameObject: m_ObjectHideFlags: 0 @@ -5303,4 +5302,4 @@ SceneRoots: - {fileID: 196185785} - {fileID: 756557177} - {fileID: 1461727046} - - {fileID: 752651539} + - {fileID: 1479721660} diff --git a/Assets/Scripts/Spin.cs b/Assets/Scripts/Spin.cs new file mode 100644 index 00000000..560901b6 --- /dev/null +++ b/Assets/Scripts/Spin.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace MAVRIC.GEEKCup +{ + + public class Spin : MonoBehaviour + { + [Range(0f, 10f)] + public float Speed = 1f; + + + + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + transform.Rotate( 0f, Speed, 0f, Space.Self); + + } + } +} diff --git a/Assets/Scripts/Spin.cs.meta b/Assets/Scripts/Spin.cs.meta new file mode 100644 index 00000000..d16fd7ae --- /dev/null +++ b/Assets/Scripts/Spin.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b08341faf2eacab4fab7b1cf26c86b25 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: