Exemplo n.º 1
0
    private void InstantiateObjsOnNewMap()
    {
        ObjectsMap[] ObjectsToInstantiate = nextMap.GetComponents <ObjectsMap>();

        if (ObjectsToInstantiate.Length > 0)
        {
            foreach (var obj in ObjectsToInstantiate)
            {
                obj.InstantiateEnemies();
            }
        }
    }