Ejemplo n.º 1
0
        public static XBehaviorTreeEditor ShowWindow(Agent agent)
        {
            XBehaviorTreeEditor window = EditorWindow.GetWindow <XBehaviorTreeEditor>(agent.BTree.Id);

            window.SetAgent(agent);
            return(window);
        }
Ejemplo n.º 2
0
        protected override void OnEnable()
        {
            base.OnEnable();
            Instance = this;
            if (mainToolbar == null)
            {
                mainToolbar = new XMainToolbar();
            }
            mainToolbar.OnEnable();

            centerView = true;
            EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
        }