void Start()
 {
     rdmobj          = GameObject.Find("RdmGen").GetComponent <RdmObjGen>();
     boostLane       = GameObject.Find("BoostLane");
     healthbarSlider = GameObject.Find("healthSlider").GetComponent <Slider>();
     boostbarSlider  = GameObject.Find("boostSlider").GetComponent <Slider>();
     ui        = GameObject.Find("UI");
     maincam   = GameObject.Find("Main Camera");
     cam       = Camera.main;
     btnPause  = GameObject.Find("Pause");
     goPanel   = GameObject.Find("goPanel");
     gameover  = goPanel.GetComponent <Animator>();
     player    = GameObject.FindGameObjectWithTag("Player");
     scoring   = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>();
     pDescend  = player.gameObject.GetComponent <camdescend>();
     anim      = GameObject.FindGameObjectWithTag("character").GetComponent <Animation>();
     btnShield = GameObject.Find("btnShield").GetComponent <Button>();
     btnAttack = GameObject.Find("btnAttack").GetComponent <Button>();
     btnBoost  = GameObject.Find("btnBoost").GetComponent <Button>();
     PlayerPrefs.DeleteKey("tempGoldCoins");
     colCoins          = GameObject.Find("txtCc").GetComponent <Text>();
     character         = GameObject.FindGameObjectWithTag("character");
     lvlUpScript       = GameObject.Find("subScoreCounter").GetComponent <levelUp>();
     swipeScript       = maincam.gameObject.GetComponent <SwipeMovement>();
     txtExpReq         = GameObject.Find("txtExpReq").GetComponent <Text>();
     expSlider         = GameObject.Find("expSlider").GetComponent <Slider>();
     txtExpCur         = GameObject.Find("txtExpCur").GetComponent <Text>();
     rewardedAdsScript = GameObject.Find("simpleAd").GetComponent <rewardedAds>();
     uigoldScript      = GameObject.Find("txtuigold").GetComponent <uigoldUpdater>();
     pauseScript       = GameObject.Find("onPause").GetComponent <pauseScale>();
     uigoldScript.updateGoldCoin();
 }
    // Use this for initialization
    void Start()
    {
        scoreCounter = GameObject.Find("subScoreCounter").GetComponent <scoreCounter>();
        PlayerPrefs.SetInt("boost3timesAch", 0);
        boostLane          = GameObject.Find("BoostLane");
        btnShield          = GameObject.Find("btnShield").GetComponent <Button>();
        btnAttack          = GameObject.Find("btnAttack").GetComponent <Button>();
        btnBoost           = GameObject.Find("btnBoost").GetComponent <Button>();
        btnPause           = GameObject.Find("Pause");
        maincam            = GameObject.Find("Main Camera");
        swipeScript        = maincam.gameObject.GetComponent <SwipeMovement>();
        boostPropScript    = GameObject.FindGameObjectWithTag("Player").GetComponent <boostProp>();
        cDownAttack        = GameObject.Find("cooldownAttack").GetComponent <cooldownAttack>();
        cDownShield        = GameObject.Find("cooldownShield").GetComponent <cooldownShield>();
        pauseScript        = GameObject.Find("onPause").GetComponent <pauseScale>();
        achPowerTripScript = GameObject.Find("btnBoost").GetComponent <achPowerTripper>();

        if (PlayerPrefs.HasKey("boostSkillLvl"))
        {
            boostSkillLvl = PlayerPrefs.GetInt("boostSkillLvl");
        }
        else
        {
            boostSkillLvl = 0;
        }

        if (boostbarSlider.value <= 0f && boostSkillLvl >= 1)
        {
            if (!isRunning)
            {
                regenBoost();
            }
        }

        coroutine = WaitAndUpdate(1.0f);
        StartCoroutine(coroutine);
    }