예제 #1
0
파일: Game.cs 프로젝트: dzil123/Unity-Pong
    void StartRound(int time)
    {
        m_ball.ChangeColor(Color.white);
        Vector3 position = GenerateStartingPosition(m_side);

        //Debug.Log(position.ToString());
        m_ball.transform.position = new Vector2(position.x, position.y);
        m_ball.ChangeAngle(position.z);

        m_paddles.Reset();
        m_paddles.SetControl(true);

        m_countdown.Start_Countdown(time, Begin);
    }