Beispiel #1
0
 private void OnDisable()
 {
     //关闭闪烁
     h.FlashingOff();
     //空调白雾
     whiteSmoke.SetActive(false);
 }
Beispiel #2
0
 //模型到达正确位置
 public void ToRightPos()
 {
     //transform.localPosition = m_FinalPos;//需更改风管之前安装的工序中手拿物体所到的位置的实现方法
     transform.position = obj_RightModel.transform.position;
     HighlightingSystem.Highlighter hler = obj_RightModel.GetComponent <HighlightingSystem.Highlighter>();
     //obj_RightModel.GetComponent<BoxCollider>().enabled = false;
     //obj_RightModel.tag = "Untagged";
     if (hler)
     {
         hler.FlashingOff();
     }
     obj_RightModel.SetActive(false);
 }
    public GameObject[] obj_ShowObj; //需要显示的物体

    public override void End()
    {
        for (int j = 0; j < obj_ShowObj.Length; ++j)
        {
            HighlightingSystem.Highlighter a = obj_ShowObj[j].GetComponent<HighlightingSystem.Highlighter>();
            if (a)
            {
                a.FlashingOff();
                a.enabled = false;
            }
        }
        base.End();
    }
 public override void Reset()
 {
     obj_HighLightObj.FlashingOff();
     obj_HighLightObj.enabled = false;
     obj_HighLightObj.gameObject.SetActive(false);
 }