Esempio n. 1
0
    public override void Process(uint seed)
    {
        List <ProceduralObject> proceduralObjects = ((WorldSetup)SingletonComponent <WorldSetup> .Instance).ProceduralObjects;

        if (!World.Cached)
        {
            for (int index = 0; index < proceduralObjects.Count; ++index)
            {
                ProceduralObject proceduralObject = proceduralObjects[index];
                if (Object.op_Implicit((Object)proceduralObject))
                {
                    proceduralObject.Process();
                }
            }
        }
        proceduralObjects.Clear();
    }
    public override void Process(uint seed)
    {
        List <ProceduralObject> proceduralObjects = SingletonComponent <WorldSetup> .Instance.ProceduralObjects;

        if (!World.Cached)
        {
            for (int i = 0; i < proceduralObjects.Count; i++)
            {
                ProceduralObject item = proceduralObjects[i];
                if (item)
                {
                    item.Process();
                }
            }
        }
        proceduralObjects.Clear();
    }