17 lines
376 B
C#
17 lines
376 B
C#
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);
|
|
}
|
|
} |