コード例 #1
0
 public override void init()
 {
     a3_trrigerDialog.instance = this;
     this.go_dialog            = base.transform.FindChild("dialog").gameObject;
     this.go_dialog.SetActive(false);
     this.txt_dialog = base.transform.FindChild("dialog/txt").GetComponent <Text>();
     this.ig_icon    = base.transform.FindChild("dialog/icon").GetComponent <Image>();
 }
コード例 #2
0
        public override void init()
        {
            instance = this;

            go_dialog = transform.FindChild("dialog").gameObject;
            Notice    = this.transform.FindChild("Notice").gameObject;
            Notice.SetActive(false);
            go_dialog.SetActive(false);
            txt_dialog = transform.FindChild("dialog/txt").GetComponent <Text>();
            ig_icon    = transform.FindChild("dialog/icon").GetComponent <Image>();

            transform.FindChild("Notice/txt").GetComponent <Text>().text = ContMgr.getCont("a3_trrigerDialog_Notice");
        }