Skip to content

Instantly share code, notes, and snippets.

@HolyFot
HolyFot / NightLight.cs
Created August 23, 2020 04:42
Enviro Scripts
using UnityEngine;
using System.Collections.Generic;
public class NightLight : MonoBehaviour
{
[SerializeField] public List<GameObject> objects;
public bool isNight = false;
private void Awake()
{
@HolyFot
HolyFot / Door.cs
Last active October 7, 2020 09:06
Unity Door Script with Pivot
//Perfect Door/Chest/DrawBridge Animation Script
//Author: HolyFot
//License: CC0
using UnityEngine;
using System.Collections;
public class Door : MonoBehaviour
{
[SerializeField] public GameObject doorObj;
[SerializeField] public GameObject pivot;
@HolyFot
HolyFot / FPSInfo.cs
Created September 14, 2020 17:45
FPS Counter + Hardware Info
//Displays: Accurate FPS Counter + Hardware Info
//Author: HolyFot
//License: CC0
using UnityEngine;
using System;
using System.Collections;
public class FPSInfo : MonoBehaviour
{
public KeyCode openFPS = KeyCode.P;
@HolyFot
HolyFot / ClientPackets.cs
Created October 6, 2020 16:50
Starter Forge Client & Server Stuff
using BeardedManStudios;
using BeardedManStudios.Forge.Networking;
using BeardedManStudios.Forge.Networking.Unity;
using BeardedManStudios.Forge.Networking.Lobby;
using BeardedManStudios.Forge.Networking.Frame;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;