using SampleBehavirTree; using UnityEngine; public class BehaviourCtrl:MonoBehaviour { public static BehaviourCtrl Instance; public static void Init() { var go = new GameObject("BehaviourTreeCtrl"); Instance= go.AddComponent(); } }