Santi
16784160a1
CubeGravity - Added increased gravity to the special object BoxTP_Catch - Added spcial object, more items spawn as timer goes down, at 0 game stops.
25 lines
575 B
C#
25 lines
575 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
|
|
|
|
//TODO Increase the gravity of the object attached to this script
|
|
public class CubeGravity : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void FixedUpdate()
|
|
{
|
|
GetComponent<Rigidbody>().AddForce(Physics.gravity *1.75f, ForceMode.Acceleration);
|
|
}
|
|
}
|