develop #12

Merged
Nicolas merged 57 commits from develop into main 2024-02-02 15:43:29 +00:00
20 changed files with 12 additions and 0 deletions
Showing only changes of commit f7a2cc4c88 - Show all commits

View File

@ -40,10 +40,22 @@ public class AtomeFactory : MonoBehaviour{
public AtomeInformation createAtome(string symbol){ public AtomeInformation createAtome(string symbol){
if(!AtomeDictionary.ContainsKey(symbol)){ if(!AtomeDictionary.ContainsKey(symbol)){
Debug.LogError("Atome does not existe in json"); Debug.LogError("Atome does not existe in json");
return null;
} }
AtomeInformation atome = AtomeDictionary[symbol]; AtomeInformation atome = AtomeDictionary[symbol];
return atome; return atome;
} }
public GameObject createAnimatedAtome(string atome) {
if(!AtomeDictionary.ContainsKey(symbol)){
Debug.LogError("Atome does not existe in json");
return null;
}
AtomeInformation atome = AtomeDictionary[symbol];
//return le gameObject
}
} }