private void Start()
 {
     ads = gameObject.GetComponent<FullScreenAds>();
 }
        private void Start()
        {
            LayoutGroup = GetComponentInChildren<HorizontalLayoutGroup>();
            UiScripts = GameObject.FindObjectOfType<IngameFunctions>();
            //Achievements = GameObject.FindObjectOfType<AchievementsRecord>();
            Ads = GameObject.FindObjectOfType<FullScreenAds>();
            Dialogs = GameObject.FindObjectOfType<DialogBox>();
            scrollBar = gameObject.GetComponentInChildren<Scrollbar>();

            TotalSize = BasicPalette.Count + 1; //1 for rainbow

            PaletteList = new List<Image>(TotalSize);
            WasColorUsed = new List<bool>(BasicPalette.Count);

            AddColors();

            OnSelectNewColor(1);
        }
 private void Start()
 {
     palette = GameObject.FindObjectOfType<ColorPalette>();
     ads = GameObject.FindObjectOfType<FullScreenAds>();
     dialog = GameObject.FindObjectOfType<DialogBox>();
 }