예제 #1
0
 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;
 }
예제 #3
0
 private void InitializeComponent()
 {
     GUI.LoadComponent(this, "Assets/Scripts/UI/TurbineView.xaml");
     _renderTextureCanvas = (Canvas)FindName("_renderTextureCanvas");
     TurbineViewModel.Instance.RenderTextureCanvas = _renderTextureCanvas;
 }
예제 #4
0
 private void InitializeComponent()
 {
     GUI.LoadComponent(this, "Assets/Scripts/UI/ApartmentView.xaml");
 }
예제 #5
0
 private void InitializeComponent()
 {
     GUI.LoadComponent(this, "Assets/Scripts/UI/JoystickControl.xaml");
     _joystick = FindName("_joystick") as Ellipse;
 }