void Start()
    {
        mainObj = GameObject.Find("undestructable");
        gm      = mainObj.GetComponent <globalMatchManager> ();
        string     jsonData = File.ReadAllText(@"Assets/jsonSettings.txt");
        jsonConfig json     = JsonUtility.FromJson <jsonConfig>(jsonData);

        sb = new scoreBoardManager();
        string matchText = json.myTeam + " vs " + json.opponentTeam;

        sb.setMatchText(matchText);
        hit = 0;

        if (json.Overs == "2")
        {
            gm.totalBalls = 12;
        }
        else if (json.Overs == "1")
        {
            gm.totalBalls = 6;
        }
        else
        {
            gm.totalBalls = 30;
        }
        gm.init();
        sb.SetTargetText(gm.target.ToString());

        setMaterial(json.myTeam);
        k        = 0;
        userAnim = GameObject.Find("bowler").GetComponent <Animator> ();
        fw       = new feilder_working();
        fs       = new FastBall();
    }
    void Start()
    {
        mainObj = GameObject.Find("dummyxyz");
        gm      = mainObj.GetComponent <globalMatchManager> ();
        string     jsonData = File.ReadAllText(@"Assets/jsonSettings.txt");
        jsonConfig json     = JsonUtility.FromJson <jsonConfig>(jsonData);

        sb = new scoreBoardManager();
        string matchText = json.myTeam + " vs " + json.opponentTeam;

        sb.setMatchText(matchText);

        k = 0;
    }