IEnumerator PreReturn() { yield return(new WaitForSeconds(0.2f)); //衣服消失 // ClothUI.SetActive(false);//有ui的话也消失 ClothUI.GetComponent <Animator>().SetTrigger("CloseImmediantly"); machineFront.sprite = emptyImg; yield return(new WaitForSeconds(0.2f)); //关门 MachineDoor.sprite = closeDoor; AudioManager.PlayAudio(AudioType.Machine_CloseDoor); yield return(new WaitForSeconds(0.2f)); //包合上 clothBag.GetComponent <Image>().sprite = closeBag; yield return(new WaitForSeconds(0.2f)); //包消失 clothBag.SetActive(false); AudioManager.PlayAudio(AudioType.Bag_Vanish); TutorialCameraController.allowScroll = false; yield return(new WaitForSeconds(0.5f)); forwardOneStep = true; }
IEnumerator PickedAllCloth(float time) { ///衣服UI和背景直接消失,洗衣机里的衣服直接消失,提示直接消失,等一段时间后门关上 deactiveButtons = true; // KararaTalk(EmojiOpenDoor); ClothUI.GetComponent <Animator>().SetTrigger("CloseImmediantly"); // ClothUI.SetActive(false); yield return(new WaitForSeconds(time)); MachineDoor.sprite = closeDoor; AudioManager.PlayAudio(AudioType.Machine_CloseDoor); machineOpen = false; deactiveButtons = false; forwardOneStep = true; //fish continue talking Show(scream); FishTalk("NoTouchCloth", true); }