public IEnumerator Start() { m_chatPool = new Pool <ChatElement>(m_chatContentRoot, m_chatElementPrefab.gameObject); this.ChatPanel.gameObject.SetActive(false); //this.ConnectingLabel.SetActive(false); m_webInterface = IOCCore.Resolve <IWebInterface>(); m_vrMenu = IOCCore.Resolve <IUserInterface>(); this.UserName = m_webInterface.UserInfo.name; #if PHOTON_UNITY_NETWORKING this.chatAppSettings = PhotonNetwork.PhotonServerSettings.AppSettings.GetChatSettings(); #endif bool appIdPresent = !string.IsNullOrEmpty(this.chatAppSettings.AppId); if (!appIdPresent) { Debug.LogError("You need to set the chat app ID in the PhotonServerSettings file in order to continue."); } yield return(null); m_sendButton.interactable = false; Connect(); }
protected override void AwakeOverride() { base.AwakeOverride(); m_settings = IOCCore.Resolve <ISettings>(); m_audio = IOCCore.Resolve <IAudio>(); m_commonResource = IOCCore.Resolve <ICommonResource>(); m_webInterace = IOCCore.Resolve <IWebInterface>(); m_hourValidator.m_timeForm = this; m_minuteValidator.m_timeForm = this; if (m_meetingHour.inputValidator != null && m_meetingHour.inputValidator is TimeInputValidator hourValidator) { hourValidator.m_timeForm = this; } if (m_meetingMinute.inputValidator != null && m_meetingMinute.inputValidator is TimeInputValidator minuteValidator) { minuteValidator.m_timeForm = this; } m_inputs.Clear(); m_inputs = new List <TMP_InputField>() { m_meetingTitle, m_meetingDate, m_meetingHour, m_meetingMinute, m_meetingDurationHour, m_meetingDurationMinute }; for (int i = 0; i < m_inputs.Count; i++) { int index = i; m_inputs[i].onSelect.AddListener((val) => m_inputIndex = index); } }
public static void SetPlatformInterface(IWebInterface web) { #if NETFX_CORE _web = web; #else throw new PlatformNotSupportedException(""); #endif }
public WebInterfaceHostService( [Dependency] IWebInterface webInterface) { this.webInterface = webInterface; ServiceName = "WebInterface host"; CanStop = true; CanPauseAndContinue = false; AutoLog = true; }
protected override void AwakeOverride() { base.AwakeOverride(); m_settings = IOCCore.Resolve <ISettings>(); m_audio = IOCCore.Resolve <IAudio>(); m_commonResource = IOCCore.Resolve <ICommonResource>(); m_webInterace = IOCCore.Resolve <IWebInterface>(); m_uiEngine.InputModuleChangeEvent += OnInputModuleChange; m_microphoneDropdown.onValueChanged.AddListener((val) => RefreshMikeDisplay()); }
private void Awake() { m_uiEngine = IOCCore.Resolve <IUIEngine>(); m_experienceMachine = IOCCore.Resolve <IExperienceMachine>(); m_network = IOCCore.Resolve <INetwork>(); m_photonView = GetComponent <PhotonView>(); m_animationEngine = IOCCore.Resolve <IAnimationEngine>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); Debug.LogError("Subscribed: m_animationEngine.InteractionStateChange"); m_animationEngine.InteractionStateChange += PlayerInteractionStateChange; }
protected void Awake() { m_experienceMachine = IOCCore.Resolve <IExperienceMachine>(); m_audio = IOCCore.Resolve <IAudio>(); m_commonResource = IOCCore.Resolve <ICommonResource>(); m_settings = IOCCore.Resolve <ISettings>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); m_network = IOCCore.Resolve <INetwork>(); m_uiEngine = IOCCore.Resolve <IUIEngine>(); AwakeOverride(); }
private void Awake() { m_uiEngine = IOCCore.Resolve <IUIEngine>(); m_experienceMachine = IOCCore.Resolve <IExperienceMachine>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); m_webInterface.OnUserDataUpdate += UserDataUpdate; if (!PhotonNetwork.IsConnectedAndReady) { PhotonNetwork.ConnectUsingSettings(); } }
protected virtual void AwakeOverride() { m_experienceMachine = ExperienceMachine; m_appTheme = AppTheme; m_audio = Audio; m_commonResource = CommonResource; m_settings = Settings; m_fordiNetwork = FordiNetwork; m_webInterface = WebInterface; m_network = Network; m_voiceChat = VoiceChat; //m_annotation = Annotation; m_settings = Settings; m_uiEngine = UIEngine; m_assetLoader = AssetLoader; m_pluginHook = PluginHook; m_permissions = Permissions; m_animationEngine = AnimationEngine; }
void Awake() { m_settings = IOCCore.Resolve <ISettings>(); m_experienceMachine = IOCCore.Resolve <IExperienceMachine>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); m_uiEngine = IOCCore.Resolve <IUIEngine>(); if (m_localScale == Vector3.zero) { m_localScale = transform.localScale; } foreach (var item in m_synchronizedElements) { FordiNetwork.RegisterPhotonView(item); } AwakeOverride(); }
private void Awake() { m_assetLoader = IOCCore.Resolve <IAssetLoader>(); UserInterface = GetComponentInChildren <IUserInterface>(true); m_experienceMachine = IOCCore.Resolve <IExperienceMachine>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); if (m_webInterface.UserInfo == null) { Player = m_female.GetComponent <IPlayer>(); } else if (m_webInterface.UserInfo.gender == Gender.MALE) { Player = m_male.GetComponent <IPlayer>(); } else { Player = m_female.GetComponent <IPlayer>(); } m_experienceMachine.RegisterPlatform(this); }
private void Awake() { m_isRunning = true; m_home = GetComponentInChildren <Home>(); m_lobby = GetComponentInChildren <Lobby>(); m_meeting = GetComponentInChildren <MeetingExperience>(); m_audio = IOCCore.Resolve <IAudio>(); m_uiEngine = IOCCore.Resolve <IUIEngine>(); m_settings = IOCCore.Resolve <ISettings>(); m_pluginHook = IOCCore.Resolve <IPluginHook>(); m_webInterface = IOCCore.Resolve <IWebInterface>(); if (SceneManager.GetActiveScene().name == Networking.Network.MeetingRoom || SceneManager.GetActiveScene().name == Networking.Network.PrivateMeetingLocation) { Selection.Location = SceneManager.GetActiveScene().name; Selection.ExperienceType = ExperienceType.MEETING; } SetExperience(GetExperience(Selection.ExperienceType)); UIInteractionBase.OnClick += Click; ResetGuideConditions(); m_pluginHook.AllPlatformDependenciesLoaded += AllPlatformDependenciesLoaded; }
/// <summary> /// Given a current contact, re-fetch it from InSpire. This should be an inspire contact or /// very bad things will happen! /// </summary> /// <param name="contact">InSpriteContact instance</param> /// <param name="webAccess">How we can get at the web</param> /// <returns></returns> public static async Task <InSpireContact> UpdateContact(this InSpireContact contact, IWebInterface webAccess) { var val = (await FindContactFromHEPNamesAsync(contact.AsContactUri(), webAccess)).ToArray(); if (val.Length != 1) { throw new InvalidOperationException("Request for single contact brought back more than one contact"); } return(val[0] as InSpireContact); }
/// <summary> /// /// </summary> /// <param name="http">The http client to poll with, if you're mocking pass one with a cutom <see cref="HttpClientHandler"/></param> /// <param name="webService">The web service to post updates to</param> /// <param name="baseUrl">The root url of the webAPI to get updates from like localhost:4000</param> public Pusher(HttpClient http, IWebInterface webService, string baseUrl) { this.http = http; this.webService = webService; this.baseUrl = baseUrl; }
public static async Task <IEnumerable <IContact> > FindContactFromHEPNamesAsync(Uri pointsToContact, IWebInterface webAccess) { // Rebuild the query with of=recjson to get back the proper response. var jsonUri = pointsToContact.AsBuilder().AddQuery("of=recjson").Uri; // Build the contact and make sure we can parse JSON into an object. var jsonData = await webAccess.DownloadString(jsonUri); return(BuildContactListFromJSON($"The uri {pointsToContact.OriginalString}", jsonData)); }
// Todo: This needs to be called from the MainPage.xaml.cs before calling FB.Init private static void SetWebviewForFacebook(IWebInterface web) { _web = web; }
private void Awake() { m_webInterface = IOCCore.Resolve <IWebInterface>(); m_webInterface.OnAssetsLoaded += OnAssetsLoaded; }
private void Awake() { m_webInterface = IOCCore.Resolve <IWebInterface>(); }