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; | |
| using System.Collections.Generic; | |
| public class GameEvent | |
| { | |
| } | |
| public class Events | |
| { | |
| static Events instanceInternal = 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; | |
| using System.Collections; | |
| public class ParticaleAnimator : MonoBehaviour { | |
| private void Awake() | |
| { | |
| particle = GetComponent<ParticleSystem>(); | |
| } |
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
| // this script works in linqpad (https://www.linqpad.net/) | |
| void Main() | |
| { | |
| var day = new DaysRevisions(); | |
| day.State.Dump(); | |
| day.State.To(LifecycleState.Draft, "me"); | |
| day.State.Dump(); | |
| day.State.To(LifecycleState.Historical, "me"); | |
| } |
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
| $(document).ready(function() { | |
| var embedGist = function () { | |
| $('a[href^="https://gist.github.com"]').each(function(i) { | |
| if (writeCapture) { | |
| var wrapper = $("<div></div>"); | |
| wrapper.insertAfter(this); | |
| writeCapture.html(wrapper[0], '<script src="'+$(this).attr("href")+'.js"></script>'); | |
| $(this).remove(); | |
| } else { |
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; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| namespace Swing.Editor | |
| { | |
| public class EditorCoroutine |
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
| #if UNITY_EDITOR | |
| using UnityEngine; | |
| using UnityEditor; | |
| // Unity にザオリク機能を追加します | |
| [InitializeOnLoad] | |
| static class Zaoriku | |
| { | |
| static Zaoriku() { | |
| EditorApplication.playmodeStateChanged += OnPlaymodeChanged; |
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 UnityEngine.Events; | |
| // interface you implement in your MB to receive events | |
| public interface ICustomHandler : IEventSystemHandler | |
| { | |
| void OnCustomCode(CustomEventData eventData); | |
| } |
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 System.Collections; | |
| public static class Vibration | |
| { | |
| #if UNITY_ANDROID && !UNITY_EDITOR | |
| public static AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
| public static AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"); | |
| public static AndroidJavaObject vibrator = currentActivity.Call<AndroidJavaObject>("getSystemService", "vibrator"); |
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; | |
| /* | |
| * Most functions taken from Tween.js - Licensed under the MIT license | |
| * at https://github.com/sole/tween.js | |
| * Quadratic.Bezier by @fonserbc - Licensed under WTFPL license | |
| */ | |
| public delegate float EasingFunction(float k); | |
| public class Easing |
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
| # Ignore everything | |
| /* | |
| /*/ | |
| # Inverse ignore some stuff | |
| !/Assets/ | |
| !/ProjectSettings/ | |
| !.gitignore | |
| # OS Stuff |
OlderNewer