public void ClickBackButton() { if (deactiveButtons) { return; } if (!putClothBack) { return; } //真正回到地铁 TutorialCameraController.ReturnToApp(); Hide(Inventory); HintScreen.SetActive(false); TutorialCameraController.JumpToPage(4); //karara现在穿着工作服和拖鞋啦 GameObject.Find("PlayerEverythingSubway").GetComponent <SpriteRenderer>().enabled = true; KararaC.SetActive(true); forwardOneStep = true; }
IEnumerator OpenCloseDoor(float time) { ///门打开后出现一下衣服,立即关上 machineOccupied.SetActive(false); MachineDoor.sprite = openDoor; AudioManager.PlayAudio(AudioType.Machine_OpenDoor); yield return(new WaitForSeconds(time)); // ClothUI.SetActive(true); ClothUiAnimator.SetTrigger("StartShowing"); float Twait = ClothUiAnimator.GetCurrentAnimatorClipInfo(0).Length; Debug.Log("TWait: " + Twait); yield return(new WaitForSeconds(Twait)); MachineDoor.sprite = closeDoor; AudioManager.PlayAudio(AudioType.Machine_CloseDoor); machineOpen = false; // ClothUI.SetActive(false); ClothUiAnimator.SetTrigger("CloseImmediantly"); HintScreen.SetActive(false); deactiveButtons = false;//打开过程有一定时间,到时间前不可再次点击 isFirstOpen = false; forwardOneStep = true; }
IEnumerator ShowShutterHint() { yield return(new WaitForSeconds(8f)); if (!flashing) { HintScreen.SetActive(true); } }
public void close() { hint1.SetActive(false); hint2.SetActive(false); hint3.SetActive(false); hint4.SetActive(false); hint5.SetActive(false); hint6.SetActive(false); HintScreen.SetActive(false); Puzz.SetActive(true); }
public void ClickShutter() { AudioManager.PlayAudio(AudioType.Photo_Shutter); HintScreen.SetActive(false); Hide(CameraBackground); Flashlight.alpha = 1; flashing = true; Debug.Log("click shutter"); forwardOneStep = true; }
public void ClickBackButtonIns() { Debug.Log("ClickInsBack"); if (deactiveButtons) { return; } HintScreen.SetActive(false); Ins.SetActive(false); Hide(CameraBackground); TutorialCameraController.myCameraState = TutorialCameraController.CameraState.Subway; forwardOneStep = true; }
public void Hint() { if (gm.hints > 0 && hintShown < 6) { HintScreen.SetActive(true); Puzz.SetActive(false); NumHints++; if (hintShown == 0) { hint1.SetActive(true); hintShown++; gm.hints--; } else if (hintShown == 1) { hint2.SetActive(true); hintShown++; gm.hints--; } else if (hintShown == 2) { hint3.SetActive(true); hintShown++; } else if (hintShown == 3) { hint4.SetActive(true); hintShown++; gm.hints--; } else if (hintShown == 4) { hint5.SetActive(true); hintShown++; gm.hints--; } else if (hintShown == 5) { hint6.SetActive(true); hintShown++; gm.hints--; } } }
IEnumerator LongTap() { //出现鱼教学长按还衣服 yield return(new WaitForSeconds(1.5f)); inventoryFish.SetActive(true);//todo: 说话的打字机效果 yield return(new WaitForSeconds(1f)); shoeAnimator.SetBool("isShining", true); //箭头出现在 HintScreen.SetActive(true); HintScreen.transform.position = InventoryUIPos[1]; //对话框出现3s后消失(暂时 yield return(new WaitForSeconds(3f)); inventoryFish.SetActive(false); }
private void hintToolStripMenuItem_Click(object sender, EventArgs e) { HintScreen hint = new HintScreen(gameController, this); hint.Show(); }