using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************* *Create By CG *Function 为了控制语音提示框和工具之间位置关系,临时建立的控制脚本 *******************************************************************************/ namespace ZXK.ZPS { public class ToolAndVoiceNotCtrl : MonoBehaviour { private void Update() { if ((GameRoot.Instance._CurModel == UTility.EnumCtrl.Model.Train&&GameRoot.Instance._TrainMng._ToolOpenState)|| (GameRoot.Instance._CurModel == UTility.EnumCtrl.Model.Exam && GameRoot.Instance._ExamMng._ToolOpenState)) { transform.GetComponent().anchoredPosition = new Vector2(-250.0f, 50.0f); } else { transform.GetComponent().anchoredPosition = new Vector2(-50.0f, 50.0f); } } } }