26 lines
608 B
C#
26 lines
608 B
C#
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
|
|
|
|
//* 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()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void FixedUpdate()
|
|
{
|
|
GetComponent<Rigidbody>().AddForce(Physics.gravity *gravity, ForceMode.Acceleration);
|
|
}
|
|
}
|