示例#1
0
 public void UnSetup()
 {
     Scene.RemoveChild(TextLayer,true);
     Scene.RemoveChild(AVGlayer,true);
     textBox.Clean();
     textBox = null;
 }
示例#2
0
 public void Setup()
 {
     Scene = Director.Instance.CurrentScene;
     textBox = new TextBox();
     TextLayer = new Layer();
     AVGlayer = new Layer();
     Scene.AddChild(AVGlayer);
     Scene.AddChild(TextLayer);
     textBox.NewTextBox();
     textBox.textBG.ChangeFather(TextLayer);
     textBox.textBG.ObjectTouched += new TouchInputDelegate(Input);
 }