public void AddStatus(string key, GameObject obj) { Add(obj); obj.Visible = false; obj.Position = new Vector2(0, 830); status.Add(key, obj.Id); OverlayButton button = new OverlayButton(key, 102); button.Position = new Vector2(30, height); button.Color = Color.Black; Add(button); height += 30; }
public void AddBaseObject(OverlayButton gameObject) { OverlayObjects.Add(gameObject); }
public void AddNewObjectAndAction(OverlayButton gameObject, Action action) { gameObject.Action = new Action(action); OverlayObjects.Add(gameObject); }