This file contains hidden or 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(); |
This file contains hidden or 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; | |
| #if UNITY_6000_3_OR_NEWER | |
| using EntityId = UnityEngine.EntityId; | |
| #else | |
| using EntityId = System.Int32; |
This file contains hidden or 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; |
This file contains hidden or 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 |
This file contains hidden or 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 | |
| { |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 ) |
This file contains hidden or 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