예제 #1
0
        public virtual void Repaint(NodeBase node)
        {
            decisions.Clear();
            currentNode = node;
            RemoveOldDecisions();

            if (gameObject.activeInHierarchy == false)
            {
                return;
            }

            SetText(variablesStringFormatter.Format(currentNode.message, currentNode.owner.variables));
            SetDecisions();
            if (navigationHandler != null)
            {
                navigationHandler.HandleNavigation(decisions.Select(o => o.button).Cast <Selectable>().ToArray());
            }

            AudioManager.AudioPlayOneShot(onShowAudio);
            animator.Play(onShowAnimation);
        }
예제 #2
0
 protected virtual void SetNavigation()
 {
     navigationHandler.HandleNavigation(uiCache.Select(o => o.Value.button).Cast <Selectable>().ToArray());
 }