using UnityEngine; using System.Collections; using UnityEngine.UI; using AX.MessageSystem; using AX.TrackRecord; public class TeamNameToggle : MonoBehaviour { private EditForceName editName; [HideInInspector] public string EditName = ""; void Start () { this.gameObject.GetComponent().group = this.transform.parent.gameObject.GetComponent(); if (ExamInfoHelpClass.applicationMode == ExamInfoHelpClass.ApplicationMode.PATHFINDING && (ExamInfoHelpClass.loadSceneMode == ExamInfoHelpClass.LoadSceneMode.CopyQuestion || ExamInfoHelpClass.loadSceneMode == ExamInfoHelpClass.LoadSceneMode.CreatQuestion || ExamInfoHelpClass.loadSceneMode == ExamInfoHelpClass.LoadSceneMode.EditQuestion|| ExamInfoHelpClass.loadSceneMode == ExamInfoHelpClass.LoadSceneMode.CheckQuestion)) { editName = GameObject.Find("PowerTeamNameWin").GetComponent(); } else { editName = GameObject.Find("TeamNameWin").GetComponent(); } this.gameObject.GetComponent().onValueChanged.AddListener(ShowName); this.transform.Find("delect").GetComponent