public void OnStartFromNewPlayerScript(NewPlayerScript player) { pauseMenuHolder.SetActive(true); screenTint.SetActive(true); eventSys.SetSelectedGameObject(resumeButton); Time.timeScale = 0f; currentPlayer = player; if (currentPlayer.GetNorth() == true) { movementText.text = screenNorth; } else { movementText.text = trueNorth; } if (player == player1) { player2.SwapToPaused(); } else { player1.SwapToPaused(); } }
public void SelectMoveType() { if (movementText.text != screenNorth) { movementText.text = screenNorth; } else { movementText.text = trueNorth; } currentPlayer.SwapTrueNorth(); if (currentPlayer.gameObject.name == "Player 1") { player1North = currentPlayer.GetNorth(); } else { player2North = currentPlayer.GetNorth(); } }