Beispiel #1
0
    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;
    }
Beispiel #2
0
 public void AddBaseObject(OverlayButton gameObject)
 {
     OverlayObjects.Add(gameObject);
 }
Beispiel #3
0
 public void AddNewObjectAndAction(OverlayButton gameObject, Action action)
 {
     gameObject.Action = new Action(action);
     OverlayObjects.Add(gameObject);
 }