public void ShowOutcome(string text, Sprite image = null) { if (animator) { animator.SetBool(ANIM_BOOL_OUTCOME, true); } RLUtilities.TweenText(outcomeText, text, textSpeed, () => SetNextButtonState(true)).SetDelay(textDelay); SetImage(image); }
public void ShowDecision(Decision decision) { if (animator) { animator.SetTrigger(ANIM_TRIGGER_SHOW); animator.SetBool(ANIM_BOOL_OUTCOME, false); } SetImage(decision.decisionImage); RLUtilities.TweenText(decisionText, decision.decisionText, textSpeed, () => { for (int b = 0; b < decisionButtons.Count; b++) { decisionButtons[b].SetButtonText(b >= decision.buttonResults.Count ? string.Empty : decision.buttonResults[b].buttonText); } if (animator) { animator.SetTrigger(ANIM_TRIGGER_BUTTONS); } }).SetDelay(textDelay); }