public void UnSetup() { Scene.RemoveChild(TextLayer,true); Scene.RemoveChild(AVGlayer,true); textBox.Clean(); textBox = null; }
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); }