19 lines
570 B
C#
19 lines
570 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
class MoleculeFactoryTester: MonoBehaviour {
|
|
|
|
public TextAsset moleculeJson;
|
|
public TextAsset atomJson;
|
|
|
|
void Start(){
|
|
MoleculeFactory factory = MoleculeFactory.getInstrance(this.moleculeJson);
|
|
AtomeFactory atomeFactory = AtomeFactory.getInstrance(this.atomJson);
|
|
GameObject mol = atomeFactory.createAnimatedAtome("Na");
|
|
//mol.transform.position = new Vector3(0,1,0);
|
|
//GameObject bon = GameOject.CreatePrimitive(PrimitiveType.)
|
|
}
|
|
|
|
} |