public void OnBehaviorTreeChanged() { if (_currentNode.Value.IsAlive) { _rootNode = new BehaviorNodeDrawer(this, null, _currentNode.Value.Target, 60f, 10f); _scrollViewRect.height = Mathf.Max(_rootNode.GetCombinedHeight(), position.height); } else { _rootNode = null; } }