// Update is called once per frame void Update() { Debug.Log(Time.time - tStamp); //initialize characters c0.Init(0, "师兄", 100, 25, 7, 3); c1.Init(1, "师姐", 100, 25, 7, 1); c2.Init(2, "师妹", 100, 25, 7, 15); if (Time.time - tStamp > 6 && !acted) { pm.Act("SelectDoor"); textImg.SetActive(false); acted = true; } if (Time.time - tStamp < 2) { textImg.GetComponent <Image>().color = Vector4.Lerp(new Vector4(1, 1, 1, 0), new Vector4(1, 1, 1, 1), (Time.time - tStamp)); } if (Time.time - tStamp > 5f && Time.time - tStamp < 6f) { textImg.GetComponent <Image>().color = Vector4.Lerp(new Vector4(1, 1, 1, 1), new Vector4(1, 1, 1, 0), (Time.time - tStamp - 7.5f)); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.A)) { pgm.Act("SelectDoor"); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.A)) { pgm.Act(); } }
public void Back() { if (GameObject.Find("BattleAudio")) { GameObject.Find("BattleAudio").SetActive(false); GameObject.Find("Audio").SetActive(true); } pgm.Act("GameStart"); }
// Update is called once per frame void Update() { if (isSelecting && !playerMove.isMoving && !acted) { if (type == 0) { pgm.Act("Battle"); } else if (type == 1) { pgm.Act("Iteam"); } else { pgm.Act("Dialogue"); } acted = true; } }
public void nextScene() { pm.Act("SelectDoor"); }
public void SelectDoor1() { Debug.Log("SelectDoor1"); pgm.Act(); SceneManager.LoadScene("Battle"); }