示例#1
0
 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();
 }
示例#2
0
 void Start()
 {
     currentPotentialType = Potential.currentPotential;
 }
示例#3
0
 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 ();*/
 }
示例#4
0
 void Start()
 {
     currentPotentialType = Potential.currentPotential;
 }