/// <summary> /// Creates a Zone using the default size and handoff ranges. /// </summary> internal NetZone(Vector3 position, int viewIdMin, int viewIdMax) { Id = NetMath.RandomUint(); ViewIdMin = viewIdMin; ViewIdMax = viewIdMax; Position = position; }
/// <summary> /// Creates a Zone using the default size and handoff ranges. /// </summary> internal NetZone(Vector3 position, int viewIdMin, int viewIdMax) { Id = NetMath.RandomUint(); ViewIdMin = viewIdMin; ViewIdMax = viewIdMax; Position = position; Debug.Log("Zone Created at:" + Position); }
/// <summary> /// Creates a Zone using custom size and handoff ranges. /// </summary> internal NetZone(Vector3 position, int viewIdMin, int viewIdMax, int handoff, int handoffMin, int handoffMax, int zoneSize) { Id = NetMath.RandomUint(); ViewIdMin = viewIdMin; ViewIdMax = viewIdMax; Position = position; HandoverDistance = handoff; HandoverMinDistance = handoffMin; HandoverMaxDistance = handoffMax; ZoneSize = zoneSize; }