Esempio n. 1
0
        public void hintClick()
        {
            toolMenu.cancelToolFollow();
            List <string> valueString = new List <string>(TrainingManager.GetVaraiableStringValue("工具").ToString().Split(','));

            if (valueString.Count == 1)
            {
                string toolName = valueString[0];
                if (toolName.Equals("wanyongbiao"))
                {
                    //if (alertMSG != null)
                    //    Destroy(alertMSG.gameObject);
                    multimeter.gameObject.SetActive(true);
                    multimeter.setShowNumber(circuitTopics[currentCircuit][0].ShowValue);
                    hintBtn.GetComponent <UIButton>().enabled = false;
                }
                else
                {
                    error();
                    showAlertMSG("操作错误!");
                }
            }
            else
            {
                error();
                showAlertMSG("操作错误!");
            }
            PluginEventManager.FireEvent("RecordTools", "");
        }