public void OnSelectZone(GameObject go) { currGzp = currGo.GetComponent <GameZoneBntProperty>(); currGo.GetComponent <UISprite>().spriteName = go.GetComponent <UISprite>().spriteName; currGo.transform.GetChild(1).GetComponent <UISprite>().spriteName = go.transform.GetChild(1).GetComponent <UISprite>().spriteName; currGo.transform.GetChild(1).GetChild(0).GetComponent <UILabel>().text = go.transform.GetChild(1).GetChild(0).GetComponent <UILabel>().text; currGo.transform.GetChild(0).GetComponent <UILabel>().text = go.transform.GetChild(0).GetComponent <UILabel>().text; }
public void OnSelectedZoneBntClicked() { /// hide game zone pannel gameZonePannelTween.PlayReverse(); StartCoroutine(HidePannel(gameZonePannelTween.gameObject)); /// show start pannel ShowPannel(startPannelTween.gameObject); startPannelTween.PlayReverse(); ///update sozne name on start pannel if (zoneNameonStartPannel == null) { Debug.Log("null\n"); } if (currGzp == null) { Debug.Log(" currGzp null\n"); } currGzp = currGo.GetComponent <GameZoneBntProperty>(); zoneNameonStartPannel.text = currGo.transform.GetChild(0).GetComponent <UILabel>().text; }
public void OnSelectZone(GameObject go) { currGzp = currGo.GetComponent<GameZoneBntProperty>(); currGo.GetComponent<UISprite>().spriteName = go.GetComponent<UISprite>().spriteName; currGo.transform.GetChild(1).GetComponent<UISprite>().spriteName = go.transform.GetChild(1).GetComponent<UISprite>().spriteName; currGo.transform.GetChild(1).GetChild(0).GetComponent<UILabel>().text = go.transform.GetChild(1).GetChild(0).GetComponent<UILabel>().text; currGo.transform.GetChild(0).GetComponent<UILabel>().text = go.transform.GetChild(0).GetComponent<UILabel>().text; }
public void OnSelectedZoneBntClicked() { /// hide game zone pannel gameZonePannelTween.PlayReverse(); StartCoroutine(HidePannel(gameZonePannelTween.gameObject)); /// show start pannel ShowPannel(startPannelTween.gameObject); startPannelTween.PlayReverse(); ///update sozne name on start pannel if (zoneNameonStartPannel == null) Debug.Log("null\n"); if (currGzp == null) Debug.Log(" currGzp null\n"); currGzp = currGo.GetComponent<GameZoneBntProperty>(); zoneNameonStartPannel.text = currGo.transform.GetChild(0).GetComponent<UILabel>().text; }