diff --git a/Assets/Scenes/Catch.unity b/Assets/Scenes/Catch.unity index 194634e..e8aa1ca 100644 --- a/Assets/Scenes/Catch.unity +++ b/Assets/Scenes/Catch.unity @@ -579,6 +579,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6ccdb916f3e54634b9b549113921c189, type: 3} m_Name: m_EditorClassIdentifier: + gravity: 1.75 --- !u!1 &1665837791 GameObject: m_ObjectHideFlags: 0 @@ -1410,6 +1411,7 @@ GameObject: - component: {fileID: 2755054658858915506} - component: {fileID: 6436778896014370081} - component: {fileID: 6436778896014370082} + - component: {fileID: 6436778896014370083} m_Layer: 0 m_Name: Bomb m_TagString: Bomb @@ -1461,3 +1463,16 @@ SphereCollider: serializedVersion: 2 m_Radius: 0.013918 m_Center: {x: -0.0000000040034016, y: 0.000000004003401, z: 0.00059917907} +--- !u!114 &6436778896014370083 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5032800252235277840} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6ccdb916f3e54634b9b549113921c189, type: 3} + m_Name: + m_EditorClassIdentifier: + gravity: 1.33 diff --git a/Assets/Scripts/Catch/CubeGravity.cs b/Assets/Scripts/Catch/CubeGravity.cs index 09dcc8d..65e1d4a 100644 --- a/Assets/Scripts/Catch/CubeGravity.cs +++ b/Assets/Scripts/Catch/CubeGravity.cs @@ -10,6 +10,7 @@ using UnityEngine; //* Increase the gravity of the object attached to this script public class CubeGravity : MonoBehaviour { + public float gravity = 1.75f; // Start is called before the first frame update void Start() { @@ -19,6 +20,6 @@ public class CubeGravity : MonoBehaviour // Update is called once per frame void FixedUpdate() { - GetComponent().AddForce(Physics.gravity *1.75f, ForceMode.Acceleration); + GetComponent().AddForce(Physics.gravity *gravity, ForceMode.Acceleration); } }