Example #1
0
    private void DestroyBall(bool isLeft)
    {
        SoundManagerScript.PlayGateHit();

        Destroy(gameObject);

        if (GameMode.AIEnable)
        {
            GameMode.AITurn = false;
        }

        ball.CreateNewBall(isLeft);
    }