public void OnChange_SimType() { if (lenJonesOn.GetComponent <Toggle>().isOn) { Potential.currentPotential = Potential.potentialType.LennardJones; if (currentPotentialType != Potential.potentialType.LennardJones) { simTypeChanged = true; } currentPotentialType = Potential.potentialType.LennardJones; Debug.Log("changeing to LennardJones"); } else if (buckinghamOn.GetComponent <Toggle>().isOn) { Potential.currentPotential = Potential.potentialType.Buckingham; if (currentPotentialType != Potential.potentialType.Buckingham) { simTypeChanged = true; } currentPotentialType = Potential.potentialType.Buckingham; Debug.Log("changeing to buckingham"); } atomTouchGUI.SetAtomBtnsVisibility(); }
void Start() { currentPotentialType = Potential.currentPotential; }
public void OnChange_SimType() { Debug.Log ("SimTypeChange"); if(lenJonesOn.GetComponent<Toggle>().isOn){ Potential.currentPotential = Potential.potentialType.LennardJones; if(currentPotentialType != Potential.potentialType.LennardJones){ simTypeChanged = true; } currentPotentialType = Potential.potentialType.LennardJones; hud.ChangeHUDtoLenardJones(); }else if(buckinghamOn.GetComponent<Toggle>().isOn){ Potential.currentPotential = Potential.potentialType.Buckingham; if(currentPotentialType != Potential.potentialType.Buckingham){ simTypeChanged = true; } currentPotentialType = Potential.potentialType.Buckingham; hud.ChangeHUDtoBuckingham(); } //atomTouchGUI.SetAtomBtnsVisibility(); //atomTouchGUI.SelectAllAtoms (); //atomTouchGUI.DeleteSelectedAtoms ();*/ }