IEnumerator TurnTick() { currentTime = 0.0f; while (!isTurnOver && currentTime <= TurnTime) { currentTime += 0.5f; gameView.Rpc_UpdateTime(currentTime / TurnTime); yield return(new WaitForSeconds(0.5f)); } if (maleCommand == -1) { malePlayer.Rpc_OnTimesUpWithoutCommand(); } if (femaleCommand == -1) { femalePlayer.Rpc_OnTimesUpWithoutCommand(); } }