public void OnEnable() { BTAsset btAsset = (BTAsset)serializedObject.targetObject; BehaviorTree bt = btAsset.Deserialize(); manager = BTEditorManager.CreateInstance(bt, btAsset); manager.btInspector = this; }
public void Awake() { behaviorTree = btAsset.Deserialize(); context = new Context(); }