public bool DoesTileObstructActors(IntVector2 tilePos) { List <int> behaviors = GetTileBehaviors(tilePos); bool result = tiles[tilePos.X, tilePos.Y].ObstructsActors(); foreach (int id in behaviors) { TileBehavior b = _scene.GetGameObjectPool().GetTileBehavior(id); result = (result || b.GetObstructsActors()); } return(result); }