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; } }
public void SubscribeTap(ISceneComponent subscriber, Action<Message<TapGesture>> action) { Verify.That(subscriber).Named("subscriber").IsNotNull(); Messenger.Register<TapGesture>(subscriber, action); }
public void AddComponent(ISceneComponent gc) { this.compontentsOrder.Add(gc); this.componentsDictionary.Add(gc.GetType(), gc); }
public void SubscribeAccelerometer(ISceneComponent subscriber, Action<Message<AccelerometerReading>> action) { Verify.That(subscriber).Named("subscriber").IsNotNull(); Messenger.Register<AccelerometerReading>(subscriber, action); }