}// public ButtonList init(ButtonList result, ICanyonShooterGame game, ProfilDescription profilXml) { Clear(); foreach (ButtonDescription i in profilXml.Buttons) { if (result.Count == 0) { result.AddFirst(new Button(game, i.ButtonName, i.ButtonRectangle, i.ButtonImage)); } else { result.AddLast(new Button(game, i.ButtonName, i.ButtonRectangle, i.ButtonImage)); } } if (!result.First.Equals(null)) { currentNode = result.First; currentNode.Value.SetActive(); } return(result); }//
public ButtonList(ICanyonShooterGame game, ProfilDescription profilXml) //: base() { this.game = game; init(this, game, profilXml); }