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)); }
protected virtual void Remove(Collider collider) { CatchStageObject catchStageObject = Find(collider); if (catchStageObject != null) { objects.Remove(catchStageObject); } }
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); } }