Beispiel #1
0
        void RoleAtk(string eventString)
        {
            object eventData;

            if (!cache.TryGet(eventString.GetHashCode(), out eventData))
            {
                eventData = Tools.Json2Obj <FrameEventInfo.RoleAtkFrameEventData>(eventString, true);
                cache.Set(eventString.GetHashCode(), eventData);
            }
            roleController.OnAtk(eventData as FrameEventInfo.RoleAtkFrameEventData);
        }