예제 #1
0
        public static void ProcessWrittenBookCallback(object customData, IGameObject book)
        {
            BookWrittenData bookWrittenData = customData as BookWrittenData;

            if (bookWrittenData == null)
            {
                return;
            }
            try
            {
                BookWritten.ProcessCallback(bookWrittenData, book as BookWritten);
            }
            catch (Exception ex)
            {
                StyledNotification.Show(new StyledNotification.Format("ProcessWrittenBookCallback: " + ex.Message, StyledNotification.NotificationStyle.kGameMessagePositive));
            }
        }
예제 #2
0
        public static void ProcessBookWrittenCallback(object customData, IGameObject book)
        {
            BookWrittenData data = customData as BookWrittenData;

            if (data == null)
            {
                return;
            }

            try
            {
                BookWritten.ProcessCallback(data, book as BookWritten);
            }
            catch (Exception e)
            {
                Common.Exception(data.ID, e);
            }
        }