// Use this for initialization



    void Start()
    {
        GameObject los_money = GameObject.Find("With Money");

        if (los_money != null)
        {
            money = los_money.GetComponent <Text> ();
        }
        else
        {
            Debug.LogError("Error");
        }
        das_energy      = PlayerPrefs.GetInt("energy");
        used_h          = PlayerPrefs.GetInt("used_h");
        used_g          = PlayerPrefs.GetInt("used_g");
        removed_h       = PlayerPrefs.GetInt("removed_h");
        removed_g       = PlayerPrefs.GetInt("removed_g");
        gTotal          = PlayerPrefs.GetInt("Grand_Total");
        bought_g        = PlayerPrefs.GetInt("bought_g");
        bought_h        = PlayerPrefs.GetInt("bought_h");
        Buy             = Buy.GetComponent <Text>();
        Fly             = Fly.GetComponent <Text>();
        payment_method  = payment_method.GetComponent <Canvas> ();
        Shopi           = Shopi.GetComponent <Text>();
        me_points       = me_points.GetComponent <Text>();
        Exit            = Exit.GetComponent <Text>();
        shopify         = shopify.GetComponent <Canvas>();
        msg             = msg.GetComponent <Canvas>();
        check           = check.GetComponent <Image>();
        wind            = wind.GetComponent <Image>();
        Remove          = Remove.GetComponent <Text>();
        Use             = Use.GetComponent <Text>();
        me_lefta        = me_lefta.GetComponent <Text>();
        check.enabled   = false;
        Remove.enabled  = false;
        Use.enabled     = false;
        msg.enabled     = false;
        shopify.enabled = false;
        GameObject da_energy = GameObject.Find("energy_img");

        energy = da_energy.GetComponent <Animator>();
        GameObject da_xmas = GameObject.Find("xmas_hat");

        animator_xmas          = da_xmas.GetComponent <Animator>();
        glasses                = transform.GetComponent <Animator>();
        Remove.enabled         = false;
        Use.enabled            = false;
        Buy.enabled            = false;
        check.enabled          = false;
        payment_method.enabled = false;
    }