private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { UIBunga6.SetActive(false); } if (enter) { if (Input.GetKeyDown(KeyCode.E)) { continuebtn(); } } }
public void continuebtn() { index++; if (index == 1) { sentences1(); } if (index == 2) { sentences2(); } if (index == 3) { sentences3(); } if (index == 4) { sentences4(); } if (index == 5) { sentences5(); } if (index == 6) { sentences6(); } if (index == 7) { sentences7(); } if (index == 8) { sentences8(); } if (index == 9) { sentences9(); } if (index == 10) { sentences10(); } if (index == 11) { sentences11(); } if (index == 12) { sentences12(); } if (index == 13) { sentences13(); } if (index == 14) { PlayerPrefs.SetInt("SkillUnlocked", 1); FindObjectOfType <AudioManager>().Play("Pop"); UIBunga6.SetActive(true); dialog.SetActive(false); PlayerPrefs.SetInt("Misi", 7); Invoke("TeleportLaut", 5); } }