Esempio n. 1
0
        public override void OnEventReceived(string id, EventArgs args, ISceneComponent sender)
        {
            Debug.Log(Time.time + " GeminiScoreboard OnEventReceived " + id);

            /* obsolete
             * if (id.Equals(eventManager.videoProcMetadataEventId) && sender!=null) {
             *  IMetadataController metadataController = (IMetadataController)sender;
             *  IMetadataModel metadataModel = metadataController.GetDataModel();
             *  IBasketballMetadataModel basketballMetadataModel = (IBasketballMetadataModel)metadataModel;
             *  isMetadataSynced = true;
             *  timeLastMetadataSynced = Time.time;
             *  updateScoreboardData(basketballMetadataModel);
             *
             * } else
             */
            // if we're here, it's a playhead event that means our metadata is temporarily out of sync
            {
                isMetadataSynced = false;
            }
        }
Esempio n. 2
0
 public void SubscribeTap(ISceneComponent subscriber, Action<Message<TapGesture>> action)
 {
     Verify.That(subscriber).Named("subscriber").IsNotNull();
     Messenger.Register<TapGesture>(subscriber, action);
 }
Esempio n. 3
0
 public void AddComponent(ISceneComponent gc)
 {
     this.compontentsOrder.Add(gc);
     this.componentsDictionary.Add(gc.GetType(), gc);
 }
Esempio n. 4
0
 public void SubscribeAccelerometer(ISceneComponent subscriber, Action<Message<AccelerometerReading>> action)
 {
     Verify.That(subscriber).Named("subscriber").IsNotNull();
     Messenger.Register<AccelerometerReading>(subscriber, action);
 }