This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Made by: HolyFot | |
//License: CC0 - https://creativecommons.org/share-your-work/public-domain/cc0/ | |
//For MeshRenderers (Basic Objects). Quickly swaps the mesh/materials for LODs, replacement for LOD Group. | |
//This is a roughdraft, but works. | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
//[ExecuteInEditMode] | |
public class SimpleLOD : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Made by: HolyFot | |
//License: CC0 - https://creativecommons.org/share-your-work/public-domain/cc0/ | |
//Note: ToggleC scripts must be childs of ToggleGroupC | |
//Note: "TargetGraphic" is a separate child image. | |
//Version 1.1 (Fix warnings & selection bug) | |
using UnityEngine; | |
using UnityEngine.Events; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
using System.Collections; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Displays: actual FPS, KBs In/Out for Forge, System Info | |
//Author: HolyFot | |
//License: CC0 | |
using UnityEngine; | |
using System; | |
using System.Collections; | |
using BeardedManStudios.Forge.Networking; | |
using BeardedManStudios.Forge.Networking.Unity; | |
public class FPSNetStats : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
public class NightLight : MonoBehaviour | |
{ | |
[SerializeField] public List<GameObject> objects; | |
public bool isNight = false; | |
private void Awake() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading; | |
using Ist; | |
using BeardedManStudios.Network; | |
public class CubeBuilding : MonoBehaviour | |
{ | |
public enum DataTransferMode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example | |
public void AddFriend() | |
{ | |
//Show Input Window | |
if (inputWindow != null) | |
{ | |
inputWindow.onOkClickCall += AddFriend2; | |
inputWindow.ShowInputWindow("Username to add as friend:"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example | |
public YesNoWindow yesNoWindow; | |
public void ExitGame() | |
{ | |
if (yesNoWindow != null) | |
{ | |
yesNoWindow.onYesClickCall += ExitGame2; | |
yesNoWindow.ShowYesNo("Are you sure you wish to quit the game?"); | |
} |
NewerOlder