public void OnPointerClick(PointerEventData eventData) { if (status != CardStatus.Hiding && globals.gameStatus == GameStatus.Started) { Hide(); globals.addPoverty(PovertyInfluence); globals.addStress(StressInfluence); } else if (globals.gameStatus == GameStatus.Finished && status != CardStatus.Hiding && status != CardStatus.Hidden) { if (type == CardType.StartButton) { Hide(); globals.instructionCard.GetComponent <CardComponent> ().Hide(); globals.instructionPopup.GetComponent <CardComponent> ().Hide(); globals.Restart(); } else if (type == CardType.InstructionButton) { globals.TogglePopup(); } else if (type == CardType.InstructionPopup) { globals.TogglePopup(); } } }