Beispiel #1
0
 public void PushToPull(MapObjectBase obj)
 {
     if (_dicSpawnObject.TryGetValue(obj, out obj))
     {
         _dicObjectPool[obj.Name()].Add(obj);
         _dicSpawnObject.Remove(obj);
     }
     else
     {
         obj = null;
     }
 }
Beispiel #2
0
    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;
        }
    }