public override void Trigger(GameObject obj) { }
//Object gets triggered from other object. public abstract void Trigger(GameObject obj);
public override void Trigger(GameObject obj) { open = !open; SetSolid(!open); this.ChangeTex(GetTexture()); }
/// <summary> /// Remove specified GameObject from this level. /// </summary> /// <param name="obj"></param> public void RemoveObject(GameObject obj) { objects.Remove(obj); }
/// <summary> /// Add specified GameObject to this level. /// </summary> /// <param name="obj"></param> public void AddObject(GameObject obj) { objects.Add(obj); }
public Button(LevelManager manager, GameObject t, Point pos) { trigger = t; base.LoadContent(manager, "button", pos); }