FContainer.GetChildAt C# (CSharp) Метод

GetChildAt() публичный Метод

public GetChildAt ( int childIndex ) : FNode,
childIndex int
Результат FNode,
    public FNode GetChildAt(int childIndex)
    {
        return _childNodes[childIndex];
    }

Usage Example

Пример #1
0
 public void clearMap()
 {
     enemyList.Clear();
     spawnPoints.Clear();
     warpPoints.Clear();
     if (tilemap != null)
     {
         tilemap.RemoveFromContainer();
         tilemap.RemoveAllChildren();
     }
     foreach (FTilemap f in otherTilemaps)
     {
         if (f != null)
         {
             f.RemoveFromContainer();
         }
     }
     if (tilemapCollision != null)
     {
         tilemapCollision.RemoveFromContainer();
     }
     if (objectGroup != null)
     {
         objectGroup.RemoveFromContainer();
     }
     for (int x = 0; x < playerLayer.GetChildCount(); x++)
     {
         playerLayer.RemoveChild(playerLayer.GetChildAt(x));
         x--;
     }
 }
All Usage Examples Of FContainer::GetChildAt