Пример #1
0
    public void Awake()
    {
        shapeTextureStorage   = new TextureStorage();
        specialTextureStorage = new TextureStorage();
        MaterialTextures      = new MaterialMatcher <MaterialTextureSet>();

        DefaultShapeTexIndex   = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f)));
        defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture);
    }
Пример #2
0
    public ContentLoader()
    {
        materialTextureStorage = new TextureStorage();
        shapeTextureStorage    = new TextureStorage();
        specialTextureStorage  = new TextureStorage();
        materialColors         = new MaterialMatcher <ColorContent>();
        materialTextures       = new MaterialMatcher <TextureContent>();



        defaultMatTexIndex     = materialTextureStorage.AddTexture(CreateFlatTexture(new Color(0.5f, 0.5f, 0.5f, 0)));
        defaultShapeTexIndex   = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f)));
        defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture);
    }
Пример #3
0
    public void Awake()
    {
        _routiner = this;

        shapeTextureStorage   = new TextureStorage();
        specialTextureStorage = new TextureStorage();
        MaterialTextures      = new MaterialMatcher <MaterialTextureSet>();

        Debug.Log("Compiling material shape textures.");
        shapeTextureStorage.AddTextureArray(Resources.Load <Texture2DArray>("shapeTextures"));

        DefaultShapeTexIndex   = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f)));
        defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture);
    }
Пример #4
0
    public void Awake()
    {
        materialTextureStorage = new TextureStorage();
        shapeTextureStorage = new TextureStorage();
        specialTextureStorage = new TextureStorage();
        materialColors = new MaterialMatcher<ColorContent>();
        materialTextures = new MaterialMatcher<TextureContent>();

        DefaultMatTexIndex = materialTextureStorage.AddTexture(CreateFlatTexture(new Color(0.5f, 0.5f, 0.5f, 0)));
        DefaultShapeTexIndex = shapeTextureStorage.AddTexture(CreateFlatTexture(new Color(1f, 0.5f, 1f, 0.5f)));
        defaultSpecialTexIndex = specialTextureStorage.AddTexture(Texture2D.blackTexture);
    }
Пример #5
0
 public ContentLoader()
 {
     materialTextureStorage = new TextureStorage();
     shapeTextureStorage = new TextureStorage();
     materialColors = new MaterialMatcher<ColorContent>();
     materialTextures = new MaterialMatcher<TextureContent>();
 }