private void RemoveZombie(byte slot) // Remove the zombie when it is dead. { Entities.Zombie zombie = null; if (_zombies.ContainsKey(slot)) { _zombies.TryRemove(slot, out zombie); } }
private Entities.Zombie GetZombie(byte slot) // Gets the zombie class based on the slot id :) { Entities.Zombie zombie = null; if (_zombies.ContainsKey(slot)) { _zombies.TryGetValue(slot, out zombie); } return(zombie); }