Actually pushing the changed comment lmao

This commit is contained in:
Santi 2024-07-15 16:49:00 +01:00
parent 41ed6da914
commit a228659836
2 changed files with 17 additions and 1 deletions

View File

@ -579,6 +579,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6ccdb916f3e54634b9b549113921c189, type: 3} m_Script: {fileID: 11500000, guid: 6ccdb916f3e54634b9b549113921c189, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
gravity: 1.75
--- !u!1 &1665837791 --- !u!1 &1665837791
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1410,6 +1411,7 @@ GameObject:
- component: {fileID: 2755054658858915506} - component: {fileID: 2755054658858915506}
- component: {fileID: 6436778896014370081} - component: {fileID: 6436778896014370081}
- component: {fileID: 6436778896014370082} - component: {fileID: 6436778896014370082}
- component: {fileID: 6436778896014370083}
m_Layer: 0 m_Layer: 0
m_Name: Bomb m_Name: Bomb
m_TagString: Bomb m_TagString: Bomb
@ -1461,3 +1463,16 @@ SphereCollider:
serializedVersion: 2 serializedVersion: 2
m_Radius: 0.013918 m_Radius: 0.013918
m_Center: {x: -0.0000000040034016, y: 0.000000004003401, z: 0.00059917907} 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

View File

@ -10,6 +10,7 @@ using UnityEngine;
//* Increase the gravity of the object attached to this script //* Increase the gravity of the object attached to this script
public class CubeGravity : MonoBehaviour public class CubeGravity : MonoBehaviour
{ {
public float gravity = 1.75f;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -19,6 +20,6 @@ public class CubeGravity : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void FixedUpdate() void FixedUpdate()
{ {
GetComponent<Rigidbody>().AddForce(Physics.gravity *1.75f, ForceMode.Acceleration); GetComponent<Rigidbody>().AddForce(Physics.gravity *gravity, ForceMode.Acceleration);
} }
} }