Ejemplo n.º 1
0
    public void Command(Dictionary <string, string> command)
    {
        var fileName   = command["image"];
        var objectName = command["name"];

        var obj = Array.Find <GameObject>
                      (GameObject.FindGameObjectsWithTag("Layer"), item => item.name == objectName);

        obj.GetComponent <Layer>().UpdateTexture(TextureSourceManager.Load(fileName));
    }
Ejemplo n.º 2
0
 public void UpdateTexture(Texture texture)
 {
     if (texture == null)
     {
         _rawImage.enabled = false;
         _rawImage.texture = null;
     }
     else
     {
         _rawImage.enabled = true;
         _rawImage.texture = texture;
         TextureSourceManager.Mark(texture.name);
     }
 }
Ejemplo n.º 3
0
    public void PreCommand(Dictionary <string, string> command)
    {
        var fileName = command["image"];

        TextureSourceManager.Load(fileName);
    }