예제 #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(TextureresourceManager.Load(fileName));
    }
예제 #2
0
 public void UpdateTexture(Texture texture)
 {
     if (texture == null)
     {
         m_rawImage.enabled = false;
         m_rawImage.texture = null;
     }
     else
     {
         m_rawImage.texture = texture;
         m_rawImage.enabled = true;
         TextureresourceManager.Mark(texture.name);
     }
 }
예제 #3
0
    public void PreCommand(Dictionary <string, string> command)
    {
        var fileName = command["image"];

        TextureresourceManager.Load(fileName);
    }