void Update() { if (hasWon) { if (Input.GetMouseButtonDown(0)) { displayController.EndGameUINext(); } } #if UNITY_EDITOR if (Input.GetMouseButtonUp(0)) //Avoid accidental clicking { PinZiPP selectedSide = GetSelectedSide(Input.mousePosition); if (selectedSide != null) { SelectSide(selectedSide); } } #endif #if UNITY_STANDALONE if (Input.GetMouseButtonUp(0)) //Avoid accidental clicking { PinZiPP selectedSide = GetSelectedSide(Input.mousePosition); if (selectedSide != null) { SelectSide(selectedSide); } } #endif }