public void RegisterGameobject(TestableGameObject obj) { if (objects.Contains(obj) || toAdd.Contains(obj)) { throw new ArgumentException("Duplicate game object"); } toAdd.Add(obj); }
public FakeGameObject(ITransform transform, TestUpdatableManager manager) : base(transform) { this.manager = manager; manager.RegisterGameobject(this); active = true; }