Exemple #1
0
 /// <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;
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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;
 }