/// <summary>
    ///
    /// </summary>
    void Start()
    {
        frustum = frustumObject.GetComponent <Frustum>();
        frustum.m_CylinderWidth = FRUSTUM_THICKNESS;

        frustumASLObject = frustumObject.GetComponent <ASLObject>();

        ARCameraASLObject = GetComponent <ASLObject>();

        ARCameraASLObject._LocallySetFloatCallback(OnFloatsReceived);

        setFrustumSize(getARCamera().GetComponent <Camera>());
    }
Ejemplo n.º 2
0
    /// <summary>
    ///
    /// </summary>
    private void Awake()
    {
        isMobileDevice = Application.isMobilePlatform;

        IsStreaming = false;
        streamingCoroutineActive = false;

        Debug.Assert(gameObject.GetComponent <ASLObject>() != null,
                     "Video Stream Requires an ASLObject to function!");

        aslObject = gameObject.GetComponent <ASLObject>();

        aslObject._LocallySetFloatCallback(OnFloatsReceived);
    }
    /// <summary>
    /// Initializes Frustum. The frustum dimensions are dependent on the camera, and this sometimes takes a few seconds
    /// to initialize on mobile. This function is delayed for one second to account for this delay.
    /// </summary>
    void Start()
    {
        m_Frustum = m_FrustumObject.GetComponent <Frustum>();
        m_Frustum.m_CylinderWidth = m_FRUSTUM_THICKNESS;

        Debug.Assert(GetComponent <ASLObject>() != null, "Frustum Display Requires an ASLObject!");

        m_FrustumASLObject = m_FrustumObject.GetComponent <ASLObject>();

        m_ARCameraASLObject = GetComponent <ASLObject>();

        m_ARCameraASLObject._LocallySetFloatCallback(OnFloatsReceived);

        StartCoroutine(DelayedFrustumInit());
    }