private void DestroyProxy() { for (int i = 0; i < _actorCount; ++i) { int j = _rand.Next() % _actorCount; Actor actor = _actors[j]; if (actor.proxyId != DynamicTree <Actor> .NullNode) { _tree.DestroyProxy(actor.proxyId); actor.proxyId = DynamicTree <Actor> .NullNode; return; } } }
private void DestroyProxy() { for (int i = 0; i < e_actorCount; ++i) { int j = Rand.rand.Next() % e_actorCount; Actor actor = _actors[j]; if (actor.proxyId != -1) { _tree.DestroyProxy(actor.proxyId); actor.proxyId = -1; return; } } }