Remove() public method

public Remove ( RecastMeshObj mesh ) : bool
mesh RecastMeshObj
return bool
Ejemplo n.º 1
0
 private void OnDisable()
 {
     this.registered = false;
     if (this._dynamic)
     {
         dynamicMeshObjs.Remove(this);
     }
     else if (!tree.Remove(this))
     {
         throw new Exception("Could not remove RecastMeshObj from tree even though it should exist in it. Has the object moved without being marked as dynamic?");
     }
     this._dynamic = this.dynamic;
 }