Example #1
0
    public void Awake()
    {
        _routiner = this;

        shapeTextureStorage   = new TextureStorage();
        specialTextureStorage = new TextureStorage();

        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);
    }