View FileDownloader.cs
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 System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
/* EXAMPLE USAGE | |
FileDownloader fileDownloader = new FileDownloader(); |
View EditorCollapseAll.cs
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 System.Collections.Generic; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEditor.IMGUI.Controls; | |
using UnityEditorInternal; | |
using UnityEngine.SceneManagement; | |
public static class EditorCollapseAll | |
{ | |
private const BindingFlags INSTANCE_FLAGS = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance; |
View TimeManager.cs
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public static class TimeManager | |
{ | |
private static List<object> pauseHolders = new List<object>(); | |
public static event System.Action<bool> OnPauseStateChanged = null; | |
public static event System.Action<float> OnTimeScaleChanged = null; |
View DeviceOrientationManager.cs
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; | |
public class DeviceOrientationManager : MonoBehaviour | |
{ | |
private const float ORIENTATION_CHECK_INTERVAL = 0.5f; | |
private float nextOrientationCheckTime; | |
private static ScreenOrientation m_currentOrientation; | |
public static ScreenOrientation CurrentOrientation |
View CircleGraphic.cs
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 UnityEngine.UI; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
// Custom Editor to order the variables in the Inspector similar to Image component | |
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects] | |
public class CircleGraphicEditor : Editor | |
{ |
View GradientGraphic.cs
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Sprites; | |
using UnityEngine.UI; | |
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
using UnityEngine.U2D; | |
#endif | |
using Sprites = UnityEngine.Sprites; | |
#if UNITY_EDITOR |
View HorizontalCamera.cs
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; | |
[ExecuteInEditMode] | |
[RequireComponent( typeof( Camera ) )] | |
public class HorizontalCamera : MonoBehaviour | |
{ | |
private Camera m_camera; | |
private float lastAspect; | |
#pragma warning disable 0649 |
View SimpleArchive.cs
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 System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
namespace SimplePatchToolCore | |
{ | |
public class SimpleArchive | |
{ | |
// Archive Structure |
View content.js
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
var checkDocument = function( doc ) | |
{ | |
var frames = doc.getElementsByTagName( "iframe" ); | |
for( var i = 0, l = frames.length; i < l; i++ ) | |
checkIframe( frames[i] ); | |
}; | |
var checkIframe = function(iframe) | |
{ | |
if( iframe.src.indexOf( "https://www.youtube" ) == 0 ) |
View PluginJARExtractor.cs
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
// Uses ZipStorer (c) 2016 Jaime Olivares [v3.4.0; August 4, 2017] (MIT-License: https://github.com/jaime-olivares/zipstorer/blob/master/LICENSE.md) | |
using System.Collections.Generic; | |
using System.Text; | |
using System; | |
using System.IO; | |
using System.IO.Compression; | |
using UnityEditor; | |
using UnityEngine; |
OlderNewer