Esempio n. 1
0
        private void Awake()
        {
            ShopUiStorage shopUiStorageScript = FindObjectOfType <ShopUiStorage>()
                                                ?? throw new NullReferenceException(nameof(ShopUiStorage));

            sectionSpawner = FindObjectOfType <SectionSpawner>()
                             ?? throw new NullReferenceException(nameof(SectionSpawner));
            sectionPointerUiSpawner = FindObjectOfType <FooterPointerUiSpawner>()
                                      ?? throw new NullReferenceException(nameof(FooterPointerUiSpawner));
            scrollViewSmoothMovement = FindObjectOfType <ScrollViewSmoothMovementBehaviour>()
                                       ?? throw new NullReferenceException(nameof(ScrollViewSmoothMovementBehaviour));
            sectionsParentGo = shopUiStorageScript.shopSectionsParent;
        }
Esempio n. 2
0
 private void Awake()
 {
     lobbyEcsController = FindObjectOfType <LobbyEcsController>();
     scrollViewSmoothMovementBehaviour = FindObjectOfType <ScrollViewSmoothMovementBehaviour>();
     textTooltip = FindObjectOfType <TextTooltip>();
 }
Esempio n. 3
0
 private void Awake()
 {
     scrollViewSmoothMovement = FindObjectOfType <ScrollViewSmoothMovementBehaviour>()
                                ?? throw new NullReferenceException(nameof(ScrollViewSmoothMovementBehaviour));
 }