Example #1
0
    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>();
    }
Example #2
0
 private void Start()
 {
     hatShopMode  = GetComponent <HatShopMode>();
     bodyShopMode = GetComponent <BodyShopMode>();
     SetShopMode(2);
 }