public void DeRegisterOnDestroy() { bool called = false; this.TestECS.ComponentDeRegistered += (c) => { called = c.Equals(this.TestComponent); }; TestComponent.OnDestroy(); Assert.True(called); }
public void DeRegisterOnDestroy() { bool called = false; this.TestECS.ComponentDeRegistered += (c) => { called = c.Equals(this.TestComponent); }; TestComponent.OnDestroy(); Assert.True(called); }