public void AddComponent(BasicComponent component) { _contain.Add(component); component.PreviousBounds = new Viewport((int)(PreviousBounds.X + PreviousBounds.Width * _state.CurrentState.Bounds.X), (int)(PreviousBounds.Y + PreviousBounds.Height * _state.CurrentState.Bounds.Y), (int)(PreviousBounds.Width * _state.CurrentState.Bounds.Z), (int)(PreviousBounds.Height * _state.CurrentState.Bounds.W)); }
public void RemoveComponent(BasicComponent component) { _contain.Remove(component); }