Beispiel #1
0
 public override void OnDrawGizmosSelected()
 {
     if (useRange && transform)
     {
         Gizmos.DrawWireSphere(transform.position, range);
     }
     else
     {
         Gizmos.DrawWireCube(ZetanUtility.CenterBetween(boundMin, boundMax), ZetanUtility.SizeBetween(boundMin, boundMax));
     }
 }
Beispiel #2
0
 public void UpdateGraphs(Vector3 fromPoint, Vector3 toPoint)
 {
     PathFinder.UpdateGraphs(new Bounds(ZetanUtility.CenterBetween(fromPoint, toPoint), ZetanUtility.SizeBetween(fromPoint, toPoint) * 0.5f));
 }