// Use this for initialization void Start() { selectManager = GameObject.Find("SelectManager").GetComponent <SelectManager>(); musicPlay = GameObject.Find("ListUpManager").GetComponent <ListUpManager>(); selectButton = GetComponent <Button> (); root = selectButton.transform.parent.gameObject; selectButton.onClick.AddListener(() => { GoToPlay(); }); }
// Use this for initialization void Start() { previewFlag = false; manager = GameObject.Find("ListUpManager").GetComponent <ListUpManager> (); informationPanel = GameObject.Find("InformationPanel"); informationPanel.GetComponent <CanvasGroup> ().alpha = 0; musicButton = GetComponent <Button> (); musicButton.onClick.AddListener(() => { UpdateInformation(); }); }
void OnEnable() { this.gameObject.GetComponent <Image> ().sprite = SlidePicture [0]; nowNo = 0; backSelect.gameObject.SetActive(false); goTutorial.gameObject.SetActive(false); key = true; musicPlay = GameObject.Find("ListUpManager").GetComponent <ListUpManager>(); selectManager = GameObject.Find("SelectManager").GetComponent <SelectManager>(); }