private void Start() { mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); screenCenterX = mainCamera.pixelWidth / 2; controllerObj = GameObject.FindGameObjectWithTag("GameController"); displayScript = controllerObj.GetComponent <ClothingDisplayOnPlayer>(); }
private void Start() { inventroy = GetComponent <Inventory>(); displayScript = GetComponent <ClothingDisplayOnPlayer>(); shop = GetComponent <Shop>(); }