2024-07-15 16:41:49 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
//* General Comments or Finished Tasks
|
|
|
|
//TODO Tasks left to be done for game
|
|
|
|
//! Bugs or Issues
|
|
|
|
//? Questions or Suggestions
|
|
|
|
|
2024-07-15 16:47:20 +01:00
|
|
|
//* Increase the gravity of the object attached to this script
|
2024-07-15 16:41:49 +01:00
|
|
|
public class CubeGravity : MonoBehaviour
|
|
|
|
{
|
2024-07-15 16:49:00 +01:00
|
|
|
public float gravity = 1.75f;
|
2024-07-15 16:41:49 +01:00
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void FixedUpdate()
|
|
|
|
{
|
2024-07-15 16:49:00 +01:00
|
|
|
GetComponent<Rigidbody>().AddForce(Physics.gravity *gravity, ForceMode.Acceleration);
|
2024-07-15 16:41:49 +01:00
|
|
|
}
|
|
|
|
}
|