// Update is called once per frame void Update() { //ShowInformation(); string str = c.getGo(); string[] goNext = str.Split(':'); if (goNext[0] == "true") { if (goNext[1] == "A") { PressA(); } else if (goNext[1] == "B") { PressB(); } c.setGo("false:"); } }