protected override void Awake() { Instance = FindObjectOfType <SceneControllerCommon>(); SceneManager.sceneLoaded += SceneManager_sceneLoaded; SceneManager.sceneUnloaded += SceneManager_sceneUnloaded; LoadSettings(); LoadScene(_initialScene, true); OverlayViewModel.Instance.Init(); StartCoroutine(FramerateCoroutine()); Languages = new List <Language> { new Language { Name = "English", Resources = (ResourceDictionary)GUI.LoadXaml("Assets/Scripts/UI/TextsEn.xaml") }, new Language { Name = "Russian", Resources = (ResourceDictionary)GUI.LoadXaml("Assets/Scripts/UI/TextsRu.xaml") } }; SelectedLanguage = Languages[0]; }
private void InitializeComponent() { GUI.LoadComponent(this, "Assets/Scripts/UI/ChatControlView.xaml"); _placeholderText = FindName("_placeholderText") as TextBlock; _entryText = FindName("_entryText") as TextBox; }
private void InitializeComponent() { GUI.LoadComponent(this, "Assets/Scripts/UI/TurbineView.xaml"); _renderTextureCanvas = (Canvas)FindName("_renderTextureCanvas"); TurbineViewModel.Instance.RenderTextureCanvas = _renderTextureCanvas; }
private void InitializeComponent() { GUI.LoadComponent(this, "Assets/Scripts/UI/ApartmentView.xaml"); }
private void InitializeComponent() { GUI.LoadComponent(this, "Assets/Scripts/UI/JoystickControl.xaml"); _joystick = FindName("_joystick") as Ellipse; }