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