void Update() { if (Aflagflag) { if (Input.GetKeyDown(KeyCode.B)) { eventScript.AButton(); textController.Click(); Debug.Log("b"); } } }