public void Click() { GameObject mainGameObject = GameObject.FindGameObjectWithTag("GameController"); if (mainGameObject != null) { game = mainGameObject.GetComponent <AdventureGame>(); } game.FlipHintMarker(); }