private IEnumerator Start() { Instance = this; _sceneName = SceneManager.GetActiveScene().name.ToLower(); RequestSendHandler = FindObjectOfType <RequestSendHandler>(); RequestSendHandler.LoadingPanel = Loading; getTargets = FindObjectOfType <GetTargetsType>(); if (getTargets != null) { while (getTargets.loading) { yield return(new WaitForEndOfFrame()); } } while (!WebAsync.isResponseCompleted) { yield return(new WaitForEndOfFrame()); } RequestSendHandler = FindObjectOfType <RequestSendHandler>(); if (_sceneName.Contains("pictures")) { ImageTargetsOrigin = Origin.GetComponentsInChildren <TargetID>().ToList(); ImageTargetsMirror = Mirror.GetComponentsInChildren <TargetID>().ToList(); } GetSchedules(); }
void Start() { RequestSendHandler = FindObjectOfType <RequestSendHandler>(); mTrackableBehaviour = GetComponent <TrackableBehaviour>(); if (mTrackableBehaviour) { mTrackableBehaviour.RegisterTrackableEventHandler(this); } }
IEnumerator Start() { Application.targetFrameRate = 60; RequestSendHandler = FindObjectOfType <RequestSendHandler>(); extraMessage = null; while (!RequestSendHandler.IsLoggedOn) { yield return(new WaitForEndOfFrame()); } GetSchedules(); #if UNITY_IOS InitIOS() : #endif }
private void Awake() { rqsh = FindObjectOfType <RequestSendHandler>(); pushNotify = FindObjectOfType <PushNotificationsController>(); var musicObjs = GameObject.FindGameObjectsWithTag("Music"); var soundObjs = GameObject.FindGameObjectsWithTag("Sound"); foreach (var m in musicObjs) { if (m.GetComponent <AudioSource>()) { MusicSources.Add(m.GetComponent <AudioSource>()); } } foreach (var m in soundObjs) { if (m.GetComponent <AudioSource>()) { SoundSources.Add(m.GetComponent <AudioSource>()); } } }
private void Awake() { RequestSendHandler = FindObjectOfType <RequestSendHandler>(); RequestSendHandler.Reconnect = Recconect; }
private void OnEnable() { RequestSendHandler = FindObjectOfType <RequestSendHandler>(); WebAsync.OnGetReport += WebAsync_OnGetReport; WebAsync.OnCleanReport += WebAsync_OnCleanReport; }
// Use this for initialization private void Awake() { RequestSendHandler = FindObjectOfType <RequestSendHandler>(); ImageTargets = GetComponentsInChildren <TargetID>().ToList(); }