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); }
protected virtual void SetNavigation() { navigationHandler.HandleNavigation(uiCache.Select(o => o.Value.button).Cast <Selectable>().ToArray()); }