private void BindFunctions() { story.BindExternalFunction("closeOut", () => { SlotManager.SM.CheckIfDoneAll(); if (SlotManager.SM.shouldEnd) { narrButton.interactable = false; StartCoroutine(SlotManager.FadeOut(SlotManager.SM.audioSource, 0.8f)); LeanTween.scale(flashbackObject, Vector3.zero, 2f).setEaseInOutQuad().setDelay(0.6f).setOnComplete(() => { SlotManager.SM.CallEnd(); }); } else { LeanTween.scale(flashbackObject, Vector3.zero, 2f).setEaseInOutQuad().setDelay(0.6f); narrButton.interactable = false; StartCoroutine(SlotManager.FadeOut(SlotManager.SM.audioSource, 0.8f)); SlotManager.SM.RefreshButton(); } }); }