Пример #1
0
    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();
    }
Пример #2
0
 void Start()
 {
     RequestSendHandler  = FindObjectOfType <RequestSendHandler>();
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
Пример #3
0
    IEnumerator Start()
    {
        Application.targetFrameRate = 60;
        RequestSendHandler          = FindObjectOfType <RequestSendHandler>();
        extraMessage = null;

        while (!RequestSendHandler.IsLoggedOn)
        {
            yield return(new WaitForEndOfFrame());
        }
        GetSchedules();

#if UNITY_IOS
        InitIOS() :
#endif
    }
Пример #4
0
    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>());
            }
        }
    }
Пример #5
0
 private void Awake()
 {
     RequestSendHandler           = FindObjectOfType <RequestSendHandler>();
     RequestSendHandler.Reconnect = Recconect;
 }
Пример #6
0
 private void OnEnable()
 {
     RequestSendHandler      = FindObjectOfType <RequestSendHandler>();
     WebAsync.OnGetReport   += WebAsync_OnGetReport;
     WebAsync.OnCleanReport += WebAsync_OnCleanReport;
 }
Пример #7
0
 // Use this for initialization
 private void Awake()
 {
     RequestSendHandler = FindObjectOfType <RequestSendHandler>();
     ImageTargets       = GetComponentsInChildren <TargetID>().ToList();
 }