public void RemoveComponentRuntime(ObjectComponent obj) { if (runtimeAdded.Contains(obj)) { this.runtimeAdded.Remove(obj); } else { this.runtimeRemoved.Add(obj); } }
public void AddComponentRuntime(ObjectComponent obj) { this.runtimeAdded.Add(obj); }
public ObjectComponent(GameObject myObj, ObjectComponent oc) { this.MyObject = myObj; this.Enabled = oc.Enabled; this.Visible = oc.Visible; }