void Start()
        {
            bmlFeedback = FindObjectOfType <BMLFeedback>();
            if (bmlFeedback == null)
            {
                Debug.LogError("Could not find BMLFeedback component in scene!");
            }
            else
            {
                bmlFeedback.BlockProgressEventHandler      += new BlockProgressCallback(OnBlockProgress);
                bmlFeedback.PredictionFeedbackEventHandler += new PredictionFeedbackCallback(OnPredictionFeedback);
                bmlFeedback.SyncPointProgressEventHandler  += new SyncPointProgressCallback(OnSyncPointProgress);
                bmlFeedback.WarningFeedbackEventHandler    += new WarningFeedbackCallback(OnWarningFeedback);
            }

            activeBehaviorStack = new Dictionary <string, float>();
        }
Beispiel #2
0
 void Start()
 {
     asapManager = GetComponent <ASAPManager> ();
     middleware  = new STOMPMiddleware("tcp://" + asapManager.middlewareLocation + ":61613", "topic://bmlFeedback", "topic://bmlRequests", "admin", "password", false);
     feedback    = GetComponent <BMLFeedback>();
 }