示例#1
0
        /// <summary>
        /// To be called to any action of player linked to learnig objective and with positive or negative vote.
        /// </summary>
        /// <param name="_data"></param>
        /// <param name="_isPositiveResult"></param>
        public void OnAnswered(ILivingLetterData _data, bool _isPositiveResult)
        {
            if (AppConfig.DebugLogDbInserts)
            {
                Debug.Log("pre-log OnAnswer " + _data.Id + " " + _isPositiveResult);
            }
            ILivingLetterAnswerData newILivingLetterAnswerData = new ILivingLetterAnswerData();

            newILivingLetterAnswerData._data             = _data;
            newILivingLetterAnswerData._isPositiveResult = _isPositiveResult;
            BufferizeLogLearnData(newILivingLetterAnswerData);
        }
示例#2
0
 /// <summary>
 /// Bufferizes the log learn data.
 /// </summary>
 /// <param name="_iLivingLetterAnswerData">The i living letter answer data.</param>
 void BufferizeLogLearnData(ILivingLetterAnswerData _iLivingLetterAnswerData)
 {
     logLearnBuffer.Add(_iLivingLetterAnswerData);
 }