// Update is called once per frame void Update() { ImageMsg info = null; info = mEventQueue.popObject(); while (info != null) { onNotify(info); info = mEventQueue.popObject(); } }