public void PushToPull(MapObjectBase obj) { if (_dicSpawnObject.TryGetValue(obj, out obj)) { _dicObjectPool[obj.Name()].Add(obj); _dicSpawnObject.Remove(obj); } else { obj = null; } }
private void Kick(MapObjectBase obj) { if (obj.Name() != MAPOBJECT_NAME.BOMB) { return; } if (_rideType != RIDE_TYPE.NULL) { return; } if (_haveKick == false) { return; } if (_tempPosition - obj.Position != Vector2.Zero) { Bomb bomb = obj as Bomb; bomb.Direction = _direction; } }