T-VIR-901_EpiLeARn/Assets/script/MoleculeFactoryTester.cs

17 lines
376 B
C#
Raw Normal View History

2024-01-11 16:38:19 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
class MoleculeFactoryTester: MonoBehaviour {
public TextAsset jsonFile;
void Start(){
MoleculeFactory factory = MoleculeFactory.getInstrance(this.jsonFile);
GameObject mol = factory.createMolecule("O2");
// mol.transform.position = new Vector3(10,0,0);
}
}