Esempio n. 1
0
        private void InitializeWithAsset(BehaviourTree asset)
        {
            SharedTree   = asset;
            _lastAssetId = asset.GetInstanceID();

            InitializeGraph();
            if (!PlaymodeWatcher.IsPlaymode)
            {
                BTUndo.Initialize(SharedTree);
            }
            _hasTreeInitialized = true;
        }