void PlayAnim(string eventString) { object eventData; if (!cache.TryGet(eventString.GetHashCode(), out eventData)) { eventData = Tools.Json2Obj <FrameEventInfo.PlayAnimFrameEventData>(eventString, true); cache.Set(eventString.GetHashCode(), eventData); } roleController.OnPlayAnim(eventData as FrameEventInfo.PlayAnimFrameEventData); }