Esempio n. 1
0
 public void VerifyDead(CharacterEntity character, bool isPlayer)
 {
     if (character && character.isDead)
     {
         #region 超时强制从锁定列表移除
         if (_deadDic.ContainsKey(character.characterInfo.instanceID))
         {
             float deadTime = _deadDic[character.characterInfo.instanceID];
             if (Time.time - deadTime > FORCE_CLEAR_TIME)
             {
                 VirtualServerControllerUtil.RemoveFromDic(character.characterInfo.instanceID, beLcokedDic);
                 _deadDic.Remove(character.characterInfo.instanceID);
             }
         }
         else
         {
             _deadDic.Add(character.characterInfo.instanceID, Time.time);
         }
         #endregion
         ClearSkiller(character.characterInfo.instanceID, isPlayer);
         if (!VirtualServerControllerUtil.ExistInDic(character.characterInfo.instanceID, beLcokedDic))
         {
             DataMessageHandler.DataMessage_Dead(character.characterInfo.instanceID, isPlayer);
         }
     }
 }