void OnMouseOver() { if (iname != "Nothing") { if (Input.GetMouseButtonUp(1)) { if (ItemSystem.current.is组合模式 && !ItemSystem.current.is当前组合(order)) { ItemSystem.current.组合(order); } else { SubtitleSystem.ShowSubtitle("拿" + iname + "干嘛呢~"); ItemSystem.ChangeCurrentItem(iname); ItemSystem.current.HideItemBlank(); } ItemSystem.current.隐藏组合框框(); } if (Input.GetMouseButtonUp(0)) { ItemSystem.current.隐藏组合框框(); ItemSystem.current.创造组合框框(transform.position, order); } } }
void OnMouseOver() { if (Input.GetMouseButtonUp(0) || (isJustNormal && Input.GetMouseButtonUp(1) && Camera.main.ScreenToWorldPoint(Input.mousePosition).y > 0)) { AudioSystem.current.Play("调查"); switch (currentSub) { case 0: SubtitleSystem.ShowSubtitle(subtitle00, time00); break; case 1: SubtitleSystem.ShowSubtitle(subtitle01, time01); break; case 2: SubtitleSystem.ShowSubtitle(subtitle02, time02); break; case 3: SubtitleSystem.ShowSubtitle(subtitle03, time03); break; } if (SubNum != 0) { currentSub++; if (currentSub > SubNum) { currentSub = 1; } } } }
public void 组合(int o) { bool isSuccess = false; if (组合1 != -1) { for (int i = 0; i < Item组合记录表.Count; i++) { if ((ItemList[组合1].name == Item组合记录表[i].i组合1 && ItemList[o].name == Item组合记录表[i].i组合2) || (ItemList[组合1].name == Item组合记录表[i].i组合2 && ItemList[o].name == Item组合记录表[i].i组合1)) { DeleteItem(组合1, o); AddItem(Item组合记录表[i].i组合后name); ShowItemBlank(); isSuccess = true; break; } } if (!isSuccess) { SubtitleSystem.ShowSubtitle("不能组合哦"); AudioSystem.current.Play("交互失败"); } else { AudioSystem.current.Play("组合"); } } }
public static void AddItem(string itemName)//添加道具 { ItemInBlank iib = NameToItem(itemName); SubtitleSystem.ShowSubtitle(iib.introductionWhenAdded); ItemList.Add(iib); }
public override void Enter(Machine machine) { machine.GetComponent <EBrake> ().finish1.SetActive(true); GameSystem.IStarted(); SubtitleSystem.ShowSubtitle("门的电力恢复了"); AMen.isopen = true; }
private void OnMouseEnter() { ItemSystem.current.显示框框(transform.position); if (iname != "Nothing") { SubtitleSystem.ShowSubtitle(Introduction); } }
// Update is called once per frame void Update() { if (touch.isTouched == true && a == true) { SubtitleSystem.ShowSubtitle(words); a = false; } else if (touch.isTouched == false && a == false) { a = true; } }
public override void Execute(Machine machine) { if (machine.IfInteracted()) { if (isopen) { SceneManager.UnloadSceneAsync("C1S2"); SceneChanger.Change("C1S3", "C1S4", "打开门后,一切都变了。", 4, "BGM4", 2, false, 4); } else { SubtitleSystem.ShowSubtitle("踹也踹不开,伐开心。"); } } }
// Update is called once per frame void Update() { if (touch.isTouched) { if (ItemSystem.GetCurrentItem() == "小钥匙") { ItemSystem.DeleteItem("小钥匙"); SubtitleSystem.ShowSubtitle("门开惹。"); GetComponent <LoadScene>().enabled = true; Destroy(this); } else { touch.isTouched = false; SubtitleSystem.ShowSubtitle("锁住惹。"); } } }
IEnumerator ch() { Vector3 temp = Player.current.GetComponentInParent <Leg>().transform.position; Fade.FadeIn(black); yield return(new WaitForSeconds(0.5f)); SceneManager.UnloadSceneAsync(toUnload); SubtitleSystem.ShowSpecialSubtitle(Sub, delayTime); yield return(new WaitForSeconds(delayTime + 1f)); SceneManager.LoadScene(toLoad, LoadSceneMode.Additive); Player.current.GetComponentInParent <Leg>().transform.position = temp; Fade.Disappear(black); yield return(new WaitForSeconds(0.3f)); isChanging = false; SceneManager.UnloadSceneAsync("过渡场景"); }
static public void Unlock(int i) { isNotLock[i] = true; SubtitleSystem.ShowSubtitle("新CG解锁"); }
public IEnumerator Words4() { yield return(new WaitForSeconds(1)); SubtitleSystem.ShowSpecialSubtitle("直到......", 4f); }
public IEnumerator Words3() { yield return(new WaitForSeconds(1)); SubtitleSystem.ShowSpecialSubtitle("那是我曾经拥有的生活", 3f); }
public IEnumerator Words2() { yield return(0); SubtitleSystem.ShowSpecialSubtitle("没有担忧、没有痛苦、没有离别", 4.5f); }
public IEnumerator Words1() { yield return(new WaitForSeconds(2.8f)); SubtitleSystem.ShowSpecialSubtitle("“和平”是什么?", 4f); }
void DrawAppear() { RoundWinner = appearingDraw; SubtitleSystem.ShowSubtitle("这回合是平局呢!加油努力干掉电脑!", 3); }
void ComputerWin()//五局三胜 { //这一个小局玩家输了 RoundWinner = COMPUTER; SubtitleSystem.ShowSubtitle("这一回合你输了耶~继续努力~", 3); }