// Update is called once per frame void Update() { //Checks which colour the cross needs to be if (spherePhysics.getBallDrops() == 0 && uiManager.getCrossColour() == 0) { uiManager.ChangeCrossColour(1); } else if (spherePhysics.getBallDrops() > 0 && uiManager.getCrossColour() == 1) { uiManager.ChangeCrossColour(0); } if (Input.GetKeyDown(KeyCode.Escape)) { togglePause(); } }