using System.Collections; using System.Collections.Generic; using UnityEngine; class AtomeFactoryTester: MonoBehaviour { public TextAsset jsonFile; void Start(){ AtomeFactory factory = AtomeFactory.getInstrance(this.jsonFile); AtomeInformation mol = factory.createAtome("H"); Debug.Log("sjkfos " + mol.representation.color); } }