// Start is called before the first frame update void Start() { if (!ConfigFile.IsLoaded) { ConfigFile.Load(); } loadingLeft = GameObject.Find("LoadingLeft").GetComponent <RectTransform>(); loadingRight = GameObject.Find("LoadingRight").GetComponent <RectTransform>(); backgroundImage = GameObject.Find("Bg").GetComponent <UnityEngine.UI.RawImage>(); if (backgroundImage != null && backgroundImage.texture != null) { backgroundImage.texture.wrapMode = TextureWrapMode.Repeat; } Bg1.SetColor(ThemeColors.Pink); Bg2.SetColor(ThemeColors.Blue); Bg3.SetColor(ThemeColors.Yellow); Pools.GameSettingOptions = ScriptableObject.CreateInstance <ObjectPooler>(); Pools.GameSettingOptions.SetPool(OptionBase, 10, true, this.gameObject); GameSettingsScreen.Initialize(Selection, ConfirmReject); GameSettingsScreen.SetConfig(ConfigFile.GetTable(Defines.GameConfig)); ConfirmReject.SetActive(false); init = true; }
// Start is called before the first frame update void Start() { if (!ConfigFile.IsLoaded) { ConfigFile.Load(); } loadingLeft = GameObject.Find("LoadingLeft").GetComponent <RectTransform>(); loadingRight = GameObject.Find("LoadingRight").GetComponent <RectTransform>(); Bg1.SetColor(ThemeColors.Pink); Bg2.SetColor(ThemeColors.Blue); Bg3.SetColor(ThemeColors.Yellow); Pools.GameSettingOptions = ScriptableObject.CreateInstance <ObjectPooler>(); Pools.GameSettingOptions.SetPool(OptionBase, 10, true, this.gameObject); GameSettingsScreen.Initialize(Selection, ConfirmReject); GameSettingsScreen.SetConfig(ConfigFile.GetTable(Defines.GameConfig)); ConfirmReject.SetActive(false); init = true; }