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; | |
| 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
| $(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
| // 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
| 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
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class GameEvent | |
| { | |
| } | |
| public class Events | |
| { | |
| static Events instanceInternal = null; |
NewerOlder