// Use this for initialization void Start() { DustAmount = PlayerPrefs.GetInt("Magic Dust "); sc1 = dustAmount.GetComponent <DustController>(); sc1.UpdateDust(); }