Tests.TestUpdatableManager.UnRegisterGameobject C# (CSharp) Method

UnRegisterGameobject() public method

public UnRegisterGameobject ( TestableGameObject obj ) : void
obj TestableGameObject
return void
        public void UnRegisterGameobject(TestableGameObject obj)
        {
            if (!(objects.Contains(obj) || toAdd.Contains(obj))) {
                throw new ArgumentException("Removing non existent game object");
            }
            toRemove.Add(obj);
        }

Usage Example

Esempio n. 1
0
 public override void Destroy()
 {
     base.Destroy();
     manager.UnRegisterGameobject(this);
 }