public void CloseTitle() { if (!animation.gameObject.activeSelf) { return; } animation.SetOnFinished(() => { titleImg.gameObject.SetActive(false); }); animation.StandbyAnimation(false); animation.Play(); }
public IEnumerator Setup() { yield return(anounceManaUI.Setup()); yield return(commandUI.Setup()); commandUI.SetOnFinished(() => missionAnnounceUI.Play()); yield return(missionAnnounceUI.Setup()); missionAnnounceUI.SetOnFinished(() => { if (isOpen) { changeViewBtn.Play(); } }); yield return(changeViewBtn.Setup()); changeViewBtn.SetOnFinished(() => isPlay = false); yield break; }