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; | |
| using System.Collections.Generic; | |
| using Arbor; | |
| namespace ArborTutorial06 | |
| { | |
| [AddComponentMenu("")] | |
| [AddBehaviourMenu("ArborTutorial06/SensorTransition")] // The menu name displayed by Add Behavior. | |
| public class SensorTransition : StateBehaviour |
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; | |
| 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. |
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; | |
| using System.Collections.Generic; | |
| using Arbor; | |
| namespace ArborTutorial06 | |
| { | |
| [AddComponentMenu("")] | |
| [AddBehaviourMenu("ArborTutorial06/SensorTransition")] // 挙動追加で表示されるメニュー名。 | |
| public class SensorTransition : StateBehaviour |
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; | |
| using UnityEngine; | |
| namespace ArborTutorial06 | |
| { | |
| [AddComponentMenu("ArborTutorial06/Sensor")] // AddComponentボタンで表示されるメニュー名。 | |
| public class Sensor : MonoBehaviour | |
| { | |
| // トリガー内に入っているGameObjectを格納するHashSet型のフィールド。 |
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 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 | |
| { |
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
| // staticコールバックをテストする場合に定義する | |
| #define TEST_STATIC_CALLBACK | |
| using UnityEngine; | |
| using System.Collections; | |
| #if UNITY_EDITOR && TEST_STATIC_CALLBACK | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; |
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 UnityEditor; | |
| namespace caitsithware.EditorTools | |
| { | |
| [InitializeOnLoad] | |
| static class CheckAudioMasterMute | |
| { | |
| static CheckAudioMasterMute() | |
| { |
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 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 | |
| { |
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 UnityEditor; | |
| using System.Collections; | |
| public class ScaleTestWindow : EditorWindow | |
| { | |
| [MenuItem("Window/ScaleTestWindow")] | |
| static void Open() | |
| { | |
| EditorWindow.GetWindow<ScaleTestWindow>(); |
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 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); |
NewerOlder