示例#1
0
        private void ExecuteNode(ComboNode node)
        {
            if (node == null)
            {
                return;
            }

            IsExecutingCombo = true;
            CurrentNode      = node;
            CurrentNode.Execute(animator, combatLayerIndex);
        }
示例#2
0
        private void InitializeComboNodesRecursively(ComboNode comboNode)
        {
            if (comboNodes.Contains(comboNode))
            {
                return;
            }

            comboNode.Initialize();

            foreach (var childNode in comboNode.Transitions.Select(t => t.targetNode))
            {
                InitializeComboNodesRecursively(childNode);
            }
        }