예제 #1
0
        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);
        }
예제 #2
0
        //private YesNoDialog dialog;
        private void Start()
        {
            ApplicationPath = Application.persistentDataPath;
            ScreenRect = new Rect(0, 0, Screen.width, Screen.height);
            TexPivot = new Vector2(Screen.width/2.0f, Screen.height/2.0f);

            ingameFuncs = GameObject.FindObjectOfType<IngameFunctions>();
            //dialog = ShareUI.GetComponentInChildren<YesNoDialog>();
        }