private void UIDefineInitalize() { CategoryTitle = GameObject.Find("DashBoard/Canvas/MainPanel/CategoryTitle"); Overview = GameObject.Find("DashBoard/Canvas/MainPanel/Overview"); Inventory = GameObject.Find("DashBoard/Canvas/MainPanel/Inventory"); Config = GameObject.Find("DashBoard/Canvas/MainPanel/Config"); Save = GameObject.Find("DashBoard/Canvas/MainPanel/Save"); Load = GameObject.Find("DashBoard/Canvas/MainPanel/Load"); Exit = GameObject.Find("DashBoard/Canvas/MainPanel/Exit"); PlayedTime = GameObject.Find("DashBoard/Canvas/MainPanel/Overview/PlayedTime"); Reputation = GameObject.Find("DashBoard/Canvas/MainPanel/Overview/Reputation"); Language = GameObject.Find("DashBoard/Canvas/MainPanel/Config/Language"); GraphicsQuality = GameObject.Find("DashBoard/Canvas/MainPanel/Config/GraphicsQuality"); TextureQuality = GameObject.Find("DashBoard/Canvas/MainPanel/Config/TextureQuality"); FoV = GameObject.Find("DashBoard/Canvas/MainPanel/Config/FoV"); QualityValue = GameObject.Find("DashBoard/Canvas/MainPanel/Config/GraphicsQuality/QualityValue"); GQ_LeftArrow = GameObject.Find("DashBoard/Canvas/MainPanel/GQ_LeftArrow/Text"); GQ_RightArrow = GameObject.Find("DashBoard/Canvas/MainPanel/GQ_RightArrow/Text"); LDD = GameObject.Find("DashBoard/Canvas/MainPanel/Config/Language/LangDropdown"); LDD_Label = GameObject.Find("DashBoard/Canvas/MainPanel/Config/Language/LangDropdown/Label"); LDD_Arrow = GameObject.Find("DashBoard/Canvas/MainPanel/Config/Language/LangDropdown/Arrow"); PlayerCamera = GameObject.Find("Environment/Player/Camera"); FoVSliderValue = GameObject.Find("DashBoard/Canvas/MainPanel/FoVSlider"); InteractionGuide = GameObject.Find("DashBoard/Canvas/InteractionPanel/InteractionGuide"); AdaptationRate = GameObject.Find("DashBoard/Canvas/InfoPanel/AdaptationRate"); TalkPanel = GameObject.Find("DashBoard/Canvas/TalkPanel"); TalkHeader = GameObject.Find("DashBoard/Canvas/TalkPanel/TalkHeader"); TalkContent = GameObject.Find("DashBoard/Canvas/TalkPanel/TalkContent"); Cat_Overview = GetUITextContent("DashBoard_OverView"); Cat_Inventory = GetUITextContent("DashBoard_Inventory"); Cat_Config = GetUITextContent("DashBoard_Settings"); Cat_Load = GetUITextContent("DashBoard_Load"); Cat_Save = GetUITextContent("DashBoard_Save"); Cat_Exit = GetUITextContent("DashBoard_Exit"); Qua_vlow = GetUITextContent("Config_GraphicQuality_Level1"); Qua_low = GetUITextContent("Config_GraphicQuality_Level2"); Qua_mid = GetUITextContent("Config_GraphicQuality_Level3"); Qua_midhigh = GetUITextContent("Config_GraphicQuality_Level4"); Qua_high = GetUITextContent("Config_GraphicQuality_Level5"); Qua_vhigh = GetUITextContent("Config_GraphicQuality_Level6"); Day = GetUITextContent("Overview_Day"); Hour = GetUITextContent("Overview_Hour"); Minute = GetUITextContent("Overview_Minute"); Second = GetUITextContent("Overview_Second"); IA_Talk = GetUITextContent("Interaction_Talk"); IA_Steal = GetUITextContent("Interaction_Steal"); IA_Gather = GetUITextContent("Interaction_Gather"); IA_Harvest = GetUITextContent("Interaction_Harvest"); IA_Take = GetUITextContent("Interaction_Take"); IA_Use = GetUITextContent("Interaction_Use"); Overview.GetComponent <Text>().text = GetUITextContent("DashBoard_OverView"); Inventory.GetComponent <Text>().text = GetUITextContent("DashBoard_Inventory"); Config.GetComponent <Text>().text = GetUITextContent("DashBoard_Settings"); Save.GetComponent <Text>().text = GetUITextContent("DashBoard_Save"); Load.GetComponent <Text>().text = GetUITextContent("DashBoard_Load"); Exit.GetComponent <Text>().text = GetUITextContent("DashBoard_Exit"); FoVSliderValue.GetComponent <Slider>().value = PlayerCamera.GetComponent <Camera>().fieldOfView; }
public void FoVSliderUpdate() { var SliderValue = FoVSliderValue.GetComponent <Slider>().value; PlayerCamera.GetComponent <Camera>().fieldOfView = SliderValue; }