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)); }
public void PreCommand(Dictionary <string, string> command) { var fileName = command["image"]; TextureSourceManager.Load(fileName); }