/// <summary> ///返回一个新的会话版控件 /// </summary> private TalkPanel MakeTalkPanel() { int x = KeyData.form1.txb_input.Location.X; int y = KeyData.form1.Pbar_schedule.Location.Y - 5; int w = KeyData.form1.txb_input.Width; int h = KeyData.form1.txb_input.Location.Y - y - 5; TalkPanel talkPanel = new TalkPanel(new Point(x, y), new Size(w, h), this); talkPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; talkPanel.Name = this.IP; return(talkPanel); }
void Awake() { if (myData == null) { myData = Resources.Load <MyDataBase>("MyDataBase"); } if (PlayerTalkPanel == null) { PlayerTalkPanel = GameObject.Find("PlayerTalkPanel").GetComponent <TalkPanel>(); } if (Selection == null) { Selection = GameObject.Find("Selection").GetComponent <TalkPanel>(); } }
void Awake() { Instance = this; Hide(); }
public override void OnAwake(params object[] paraList) { m_MainPanel = GameObject.GetComponent <TalkPanel>(); }