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