Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Arbor;
namespace ArborTutorial06
{
[AddComponentMenu("")]
[AddBehaviourMenu("ArborTutorial06/SensorTransition")] // The menu name displayed by Add Behavior.
public class SensorTransition : StateBehaviour
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ArborTutorial06
{
[AddComponentMenu("ArborTutorial06/Sensor")] // The menu name displayed by the Add Component button.
public class Sensor : MonoBehaviour
{
// A HashSet type field that stores the GameObject contained in the trigger.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Arbor;
namespace ArborTutorial06
{
[AddComponentMenu("")]
[AddBehaviourMenu("ArborTutorial06/SensorTransition")] // 挙動追加で表示されるメニュー名。
public class SensorTransition : StateBehaviour
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ArborTutorial06
{
[AddComponentMenu("ArborTutorial06/Sensor")] // AddComponentボタンで表示されるメニュー名。
public class Sensor : MonoBehaviour
{
// トリガー内に入っているGameObjectを格納するHashSet型のフィールド。
using UnityEngine;
using Arbor;
using Arbor.BehaviourTree;
/// <summary>
/// Condition OK if the distance between self object and Target is not more than Distance!
/// </summary>
[AddComponentMenu("")]
public class MyDistanceCheck : Decorator
{
// staticコールバックをテストする場合に定義する
#define TEST_STATIC_CALLBACK
using UnityEngine;
using System.Collections;
#if UNITY_EDITOR && TEST_STATIC_CALLBACK
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
using UnityEditor;
namespace caitsithware.EditorTools
{
[InitializeOnLoad]
static class CheckAudioMasterMute
{
static CheckAudioMasterMute()
{
using UnityEngine;
using Arbor;
using Arbor.BehaviourTree;
/// <summary>
/// Condition OK if the distance between self object and Target is not more than Distance!
/// </summary>
[AddComponentMenu("")]
public class DistanceCheck : Decorator
{
using UnityEngine;
using UnityEditor;
using System.Collections;
public class ScaleTestWindow : EditorWindow
{
[MenuItem("Window/ScaleTestWindow")]
static void Open()
{
EditorWindow.GetWindow<ScaleTestWindow>();
using UnityEngine;
public static class QuaternionUtil
{
public static Quaternion FromToRotationFixedAxis(Vector3 from, Vector3 to, Vector3 axis)
{
from = Vector3.ProjectOnPlane(from, axis);
to = Vector3.ProjectOnPlane(to, axis);
float angle = Vector3.Angle(from, to);
return Quaternion.AngleAxis(angle, axis);