Пример #1
0
    public void UpdateAt(Vector3Int localPosition, SystemType ToUpDate = SystemType.All)
    {
        if (!initialized)
        {
            return;
        }

        //ensuring no metadata tiles are created at non-zero Z
        localPosition.z = 0;

        for (int i = 0; i < systems.Count; i++)
        {
            if (ToUpDate.HasFlag(systems[i].SubsystemType))
            {
                systems[i].UpdateAt(localPosition);
            }
        }
    }