Пример #1
0
 public void DisplayMolInfoSheet(bool newValue)
 {
     if (selectedMol != null)
     {
         MoleculeController selectedMolScript = selectedMol.GetComponent <MoleculeController>();
         selectedMolScript.DisplayInfoSheet(FirstPersonCamera, newValue);
     }
 }
    public void MoleculePhysicsToggle(bool newValue)
    {
        enableVelocity = newValue;

        if (enableVelocity && selectedMol.displayingInfoSheet)
        {
            uIController.TurnOffToggle(2);
            selectedMol.DisplayInfoSheet(FirstPersonCamera, false);
        }

        else
        {
            selectedMol.StopMotion();
        }
    }
    public void DisplayMolInfoSheet(bool newValue)
    {
        if (selectedMol != null)
        {
            if (enableVelocity && newValue)
            {
                _ShowAndroidToastMessage("Disable physics to show information sheet!");
                uIController.TurnOffToggle(2);
            }


            else if (enableVelocity == false)
            {
                MoleculeController selectedMolScript = selectedMol.GetComponentInChildren <MoleculeController>();
                selectedMolScript.DisplayInfoSheet(FirstPersonCamera, newValue);
            }
        }
    }