Skip to content

Instantly share code, notes, and snippets.

View cadenburleson's full-sized avatar
💭
Hacking it together.

Caden Burleson cadenburleson

💭
Hacking it together.
View GitHub Profile
@cadenburleson
cadenburleson / CountdownTimer.cs
Last active March 8, 2024 05:13
24 hour countdown timer in Unity3D
using UnityEngine;
using TMPro;
using System;
using Microsoft.Unity.VisualStudio.Editor;
using UnityEngine.UI;
using UnityEngine.Events;
public class CountdownTimer : MonoBehaviour
{
private int V = 1;
private static PlankController _instance;
public static PlankController Instance{
get{
if (_instance == null)
{
Debug.LogError(" is null");
}
return _instance;
}
using System;
//using System.Collections; | Probably not needed
//using System.Collections.Generic; | Probably not needed
//using UnityEditor; | Probably not needed
using UnityEngine;
public class Notify : MonoBehaviour
{
private string title = "Ballsack is warmed";
private string content = "Do your 20 push-ups for today!";
@cadenburleson
cadenburleson / colliderTransform.cs
Last active May 23, 2019 07:32
Need help with transforming a collider over time smoothly depending on character height
public CapsuleCollider characterCollider;
public float characterColliderStartHeight;
public float characterColliderEndHeight;
public float colliderTransformTime;
private void Start() {
myRB = this.GetComponent<Rigidbody>() as Rigidbody;
characterCollider = this.GetComponent("Collider") as CapsuleCollider;
characterColliderStartHeight = characterCollider.height;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GunFollow: MonoBehaviour {
public GameObject objectToSpawn;
public Transform gun;
public Transform cam;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Move : MonoBehaviour {
public bool xAxis;
public bool yAxis;
public bool zAxis;