Exemplo n.º 1
0
    void Start()
    {
        m_TargetBuildingBehaviour = GetComponent <UserDefinedTargetBuildingBehaviour>();

        if (m_TargetBuildingBehaviour)
        {
            m_TargetBuildingBehaviour.RegisterOnInitializedEventHandler(OnInitialized);
            m_TargetBuildingBehaviour.RegisterOnFrameQualityChangedEventHandler(OnFrameQualityChanged);
            m_TargetBuildingBehaviour.RegisterOnNewTrackableSourceEventHandler(OnNewTrackableSource);
            Debug.Log("Registering User Defined Target event handler.");
        }

        m_FrameQualityMeter = FindObjectOfType <EvaluarTarget>(); //FindObjectOfType<FrameQualityMeter>();
    }