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 static partial class TransformExtentions { | |
public static void DestroyAllChildren(this Transform tf) { | |
foreach(Transform t in tf) { | |
GameObject.Destroy(t.gameObject); | |
} | |
tf.DetachChildren(); | |
} |
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; | |
namespace RandomGen { | |
[Serializable] | |
public abstract class RandomGenerator { | |
/// <summary> | |
/// シード値 | |
/// </summary> | |
public abstract uint Seed { |
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
public static partial class IEnumerableExtensions { | |
public static void ForEach<T>(this IEnumerable<T> e, Action<T> action) { | |
foreach(T item in e) { | |
action(item); | |
} | |
} | |
} |
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.Events; | |
using UnityEngine.EventSystems; | |
namespace UI { | |
// クリック可能なUIコンポーネント | |
[RequireComponent(typeof(EventTrigger))] | |
public class Clickable : MonoBehaviour { | |
// クリック時の挙動 |
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.Events; | |
using UnityEngine.EventSystems; | |
using UniRx; | |
namespace UI { | |
// ダブルクリック可能なUIコンポーネント | |
[RequireComponent(typeof(EventTrigger))] | |
public class DoubleClickable : MonoBehaviour{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>getcomp</Title> | |
<Shortcut>getcomp</Shortcut> | |
<Description>dependency injection using Get Component</Description> | |
<Author></Author> | |
</Header> | |
<Snippet> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>reqc</Title> | |
<Shortcut>reqc</Shortcut> | |
<Description>ReuireComponentAttribute</Description> | |
<Author></Author> | |
</Header> | |
<Snippet> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>rrp</Title> | |
<Shortcut>rrp</Shortcut> | |
<Description>ReadOnly Reactive Property interface definition</Description> | |
<Author></Author> | |
</Header> | |
<Snippet> |
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; | |
namespace Git { | |
public class Commit : ScriptableObject{ | |
public string id; | |
public static Commit Create(string commitId) { | |
var instance = CreateInstance<Commit>(); |
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
/** | |
NYSL Version 0.9982 (en) (Unofficial) | |
---------------------------------------- | |
A. This software is "Everyone'sWare". It means: | |
Anybody who has this software can use it as if he/she is | |
the author. | |
A-1. Freeware. No fee is required. | |
A-2. You can freely redistribute this software. | |
A-3. You can freely modify this software. And the source | |
may be used in any software with no limitation. |