Exemplo n.º 1
0
    public Enemy FindEnemy()
    {
        RemoveFromDestroyedCollider();
        CatchStageObject catchStageObject = objects.Find((CatchStageObject o) => o.obj is Enemy && o.collider != null && o.bullet == null);

        return((catchStageObject == null) ? null : (catchStageObject.obj as Enemy));
    }
Exemplo n.º 2
0
    protected virtual void Remove(Collider collider)
    {
        CatchStageObject catchStageObject = Find(collider);

        if (catchStageObject != null)
        {
            objects.Remove(catchStageObject);
        }
    }
Exemplo n.º 3
0
    protected virtual void Add(StageObject obj, Collider collider, BulletObject bullet)
    {
        CatchStageObject catchStageObject = Find(collider);

        if (catchStageObject == null)
        {
            CatchStageObject catchStageObject2 = new CatchStageObject();
            catchStageObject2.obj      = obj;
            catchStageObject2.collider = collider;
            catchStageObject2.bullet   = bullet;
            catchStageObject           = catchStageObject2;
            objects.Add(catchStageObject);
        }
    }