private void ShowPanel(string detail) { InGameUI.Instance.panel.SetActive(true); tweenSpeed = 7; runTween = true; StartCoroutine(Fun.WaitFor(.2f, () => InGameUI.Instance.panelText.text = detail)); OnTweenCompleted = () => { InGameUI.Instance.panelImage.color = Color.black; StartCoroutine(Fun.WaitFor(2f, () => { GetResult(); InGameUI.Instance.skyText.text = weatherSystem.GetResultText(); if (result == OptionResult.Num) { InGameUI.Instance.skyText.text = "Congrats!!! Your clothers are dry now . . ."; } InGameUI.Instance.panel.SetActive(false); InGameUI.Instance.leftChoice.gameObject.SetActive(false); InGameUI.Instance.rightChoice.gameObject.SetActive(false); foreach (var item in components) { item.state = ClothState.Dry; } StartCoroutine(Fun.WaitFor(2f, () => { InGameUI.Instance.replayObject.SetActive(true); })); })); }; }