Skip to content

Instantly share code, notes, and snippets.

View taross-f's full-sized avatar

Taro Furuya taross-f

View GitHub Profile
@taross-f
taross-f / github-flow.ja.md
Created July 14, 2021 08:35 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using System;
public static class FindInterface {
public static void DoParentEventSystemHandler<T>(this Transform self, Action<T> action) where T:IEventSystemHandler
{
Transform parent = self.transform.parent;
while(parent != null) {
@taross-f
taross-f / SingletonMonoBehaviour.cs
Last active October 8, 2015 01:43 — forked from tsubaki/SingletonMonoBehaviour.cs
旧シングルトンの改良版。初回起動時にインスタンスが登録されていなければ自身を登録する
using UnityEngine;
using System.Collections;
public class SingletonMonoBehaviour<T> : MonoBehaviour where T : SingletonMonoBehaviour<T>
{
protected static T instance;
public static T Instance {
get {
if (instance == null) {
instance = (T)FindObjectOfType (typeof(T));