public void UnSummon(BaseCharacterEntity summoner) { if (type == SummonType.Pet) { CharacterItem newItem = CharacterItem.Create(dataId, Level, 1); newItem.exp = Exp; if (CacheEntity == null || CacheEntity.CurrentHp <= 0) { newItem.Lock(GameInstance.Singleton.petDeadLockDuration); } else { newItem.Lock(GameInstance.Singleton.petUnSummonLockDuration); } summoner.NonEquipItems.Add(newItem); } if (CacheEntity != null) { CacheEntity.UnSummon(); } }