void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { GameObject _fuelHandler = GameObject.Find("FuelHandlerObject"); FuelHandler _fuelHandlerScript = _fuelHandler.GetComponent <FuelHandler>(); _fuelHandlerScript.LoginButtonPressed(); _fuelHandlerScript.updateLoginText(); } }