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 SkinneMeshRenderers (Characters/NPCs/Etc). This script was made to just swap the mesh/materials for LODs, since Unity's LOD Group to change the entire object which isn't ideal for weapons/armor/objects. | |
//This is a roughdraft, but works. | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
//[ExecuteInEditMode] | |
public class CharacterLOD : 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
//EXAMPLE USAGE: | |
void OnEnable() | |
{ | |
if (MapLoadDetector.Instance != null) | |
MapLoadDetector.Instance.onMap1LoadedCall += OnMapLoaded; | |
} | |
void OnDisable() | |
{ | |
if (MapLoadDetector.Instance != null) |
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 | |
// Very Simple INI Parser/Writer. | |
// Ignores Comments and is Case Sensitive. | |
using UnityEngine; | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; | |
public class SimpleIni |
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/ | |
//Notes: Handles negative to positive ranges too. | |
using System; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(Slider))] | |
public class SliderPercent : MonoBehaviour | |
{ |
NewerOlder