// Start is called before the first frame update void Start() { Instantiate(player, new Vector2(0, 0), Quaternion.identity); rsg = GameObject.Find("Shop").GetComponent <RandomShopGenerator>(); }
void Start() { Shop = GameObject.Find("Shop"); rsg = Shop.GetComponent <RandomShopGenerator>(); }