ajout de l'atom factory
This commit is contained in:
@ -36,6 +36,11 @@ public class AtomeFactory : MonoBehaviour{
|
||||
}
|
||||
return AtomeFactory.instance;
|
||||
}
|
||||
|
||||
public bool hasAtome(String symbol)
|
||||
{
|
||||
return AtomeDictionary.ContainsKey(symbol);
|
||||
}
|
||||
|
||||
public AtomeInformation createAtome(string symbol){
|
||||
if(!AtomeDictionary.ContainsKey(symbol)){
|
||||
@ -76,7 +81,7 @@ public class AtomeFactory : MonoBehaviour{
|
||||
GameObject orbitCircle = new GameObject("Orbit Circle");
|
||||
LineRenderer lineRenderer = orbitCircle.AddComponent<LineRenderer>();
|
||||
lineRenderer.useWorldSpace = false;
|
||||
lineRenderer.widthMultiplier = 0.05f; // Ajustez l'épaisseur de la ligne si nécessaire.
|
||||
lineRenderer.widthMultiplier = 0.03f; // Ajustez l'épaisseur de la ligne si nécessaire.
|
||||
lineRenderer.positionCount = 100 + 1;
|
||||
//Add Color
|
||||
Color myColor = new Color(0, 0, 1, 1);
|
||||
|
Reference in New Issue
Block a user