Skip to content

Instantly share code, notes, and snippets.

@yuw-unknown
yuw-unknown / ArborButtonInteractable.cs
Created August 14, 2017 09:37
Arborを用いたボタンの活性/非活性
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Arbor {
/**
* ボタンを活性/非活性にします
*/
@yuw-unknown
yuw-unknown / ArborCatStateStageIn.cs
Created August 14, 2017 07:52
Arbor2の他のオブジェクトの状態を監視するSample
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Arbor
{
/**
* 猫が茂みに居るStatusになった際に、次のStateを呼び出します
*/
[AddComponentMenu("")]
@yuw-unknown
yuw-unknown / BaseMonoBehaviour.cs
Created August 14, 2017 04:25
MonoBehaviourの親クラスSample
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseMonoBehaviour : MonoBehaviour {
// -----------------------------------------
// Instance
// -----------------------------------------
//初期化したかどうかのフラグ(一度しか初期化が走らないようにするため)
@yuw-unknown
yuw-unknown / BehaviourUtility.cs
Last active August 14, 2017 04:07
Behaviourの共通機能 主にPosition周り
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/**
* Behaviourの共通機能
* FIXME: 毎回BehaviourUtilityを記載するのも冗長なので何か手を打ちたい
* - BUにリネーム?
* - 他もっと便利にアクセス出来る方法があれば
*/