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