コード例 #1
0
 private void RemoveExtension(StratusPlayerControllerExtension extension)
 {
     endOfFrameRequests.Add(() =>
     {
         extensionEditor = null;
         extensionIndex  = 0;
         target.Remove(extension);
         Undo.DestroyObjectImmediate(extension);
         RefreshExtensions();
     });
 }
コード例 #2
0
        private void OnTreeSet()
        {
            this.behaviorTree.Assert();
            this.behaviorTreeProperties = new StratusSerializedPropertyMap(this.behaviorTree, typeof(StratusScriptable));

            // Blackboard
            this.blackboardEditor = null;
            if (this.blackboard)
            {
                this.OnBlackboardSet();
            }

            this.Refresh();
        }
コード例 #3
0
 private void OnBlackboardSet()
 {
     this.blackboardEditor = StratusEditor.CreateEditor(this.behaviorTree.blackboard) as StratusEditor;
 }
コード例 #4
0
 private void CreateExtensionEditor()
 {
     extensionEditor = UnityEditor.Editor.CreateEditor(selectedExtension) as StratusEditor;
     extensionEditor.backgroundStyle = EditorStyles.helpBox;
 }