Beispiel #1
0
    private IEnumerator RoundStarting()
    {
        Debug.Log("RoundStarting");
        ball.Reset();
        roundWinner = null;

        roundNumber++;
        messageText.text = "ROUND " + roundNumber;

        yield return(StartWait);
    }
Beispiel #2
0
    public void Bowl(int pinFalls)
    {
        //add number of pins fallen to list, reset the ball and preform action depending on content of rolls list
        try{
            rolls.Add(pinFalls);
            ball.Reset();
            pinSetter.PerformAction(ActionMaster.NextAction(rolls));
        }
        catch
        {
            Debug.LogWarning("Something went wrong in game manager bowl");
        }

        //display number of pins fallen in each roll and the score for the round
        try{
            scoreDisplay.FillRolls(rolls);
            scoreDisplay.FillFrames(ScoreMaster.ScoreCumulative(rolls));
        }
        catch
        {
            Debug.LogWarning("Something is wrong with scoredisplay.fillrollcard");
        }
    }
Beispiel #3
0
 public void ResetGame()
 {
     ball.Reset(ServeSide);
     leftPaddle.Reset();
     rightPaddle.Reset();
 }