private void Start() { shop = GetComponent <Shop>(); shop.RegisterObserver(this); hatShopMode = GetComponent <HatShopMode>(); bodyShopMode = GetComponent <BodyShopMode>(); rectTransform = onj.GetComponent <RectTransform>(); mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); }
private void Start() { hatShopMode = GetComponent <HatShopMode>(); bodyShopMode = GetComponent <BodyShopMode>(); SetShopMode(2); }