void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { if (this.gameObject.name == "JUGAR") { if (Input.GetMouseButtonDown(0)) { Okey.GetComponent <AudioSource>().Play(); Contenedor2.SetActive(true); APAGAR1.ApagarAqui = true; } //if (Input.GetMouseButtonDown(1)) Debug.Log("Pressed right click."); //if (Input.GetMouseButtonDown(2)) Debug.Log("Pressed middle click."); } if (this.gameObject.name == "OK_PERSONAJE") { if (Input.GetMouseButtonDown(0)) { SceneManager.LoadScene("TestRoom"); } //if (Input.GetMouseButtonDown(1)) Debug.Log("Pressed right click."); //if (Input.GetMouseButtonDown(2)) Debug.Log("Pressed middle click."); } }
private void ExecuteCapsCommand() { if (caps == false) { caps = true; CapsEnabled = true; CapsDisabled = false; Akey = Akey.ToUpper(); Bkey = Bkey.ToUpper(); Ckey = Ckey.ToUpper(); Dkey = Dkey.ToUpper(); Ekey = Ekey.ToUpper(); Fkey = Fkey.ToUpper(); Gkey = Gkey.ToUpper(); Hkey = Hkey.ToUpper(); Ikey = Ikey.ToUpper(); Jkey = Jkey.ToUpper(); Kkey = Kkey.ToUpper(); Lkey = Lkey.ToUpper(); Mkey = Mkey.ToUpper(); Nkey = Nkey.ToUpper(); Okey = Okey.ToUpper(); Pkey = Pkey.ToUpper(); Qkey = Qkey.ToUpper(); Rkey = Rkey.ToUpper(); Skey = Skey.ToUpper(); Tkey = Tkey.ToUpper(); Vkey = Vkey.ToUpper(); Ukey = Ukey.ToUpper(); Wkey = Wkey.ToUpper(); Xkey = Xkey.ToUpper(); Ykey = Ykey.ToUpper(); Zkey = Zkey.ToUpper(); } else { caps = false; CapsEnabled = false; CapsDisabled = true; Akey = Akey.ToLower(); Bkey = Bkey.ToLower(); Ckey = Ckey.ToLower(); Dkey = Dkey.ToLower(); Ekey = Ekey.ToLower(); Fkey = Fkey.ToLower(); Gkey = Gkey.ToLower(); Hkey = Hkey.ToLower(); Ikey = Ikey.ToLower(); Jkey = Jkey.ToLower(); Kkey = Kkey.ToLower(); Lkey = Lkey.ToLower(); Mkey = Mkey.ToLower(); Nkey = Nkey.ToLower(); Okey = Okey.ToLower(); Pkey = Pkey.ToLower(); Qkey = Qkey.ToLower(); Rkey = Rkey.ToLower(); Skey = Skey.ToLower(); Tkey = Tkey.ToLower(); Vkey = Vkey.ToLower(); Ukey = Ukey.ToLower(); Wkey = Wkey.ToLower(); Xkey = Xkey.ToLower(); Ykey = Ykey.ToLower(); Zkey = Zkey.ToLower(); } }