public void OnDrawGizmos() { if (this._thisT == null) { this._thisT = base.transform; } if (!Application.isPlaying && this._posBuffer != this._thisT.position + this._startPosOffset) { this._posBuffer = this._thisT.position + this._startPosOffset; } if (this._positionSphereDepth == -1f) { this._positionSphereDepth = this._positionSphere; } if (this._spawnSphereDepth == -1f) { this._spawnSphereDepth = this._spawnSphere; } Gizmos.color = Color.blue; DebugRender.DrawBoxGizmos(this._posBuffer, new Vector3(this._spawnSphere * 2f, this._spawnSphereHeight * 2f, this._spawnSphereDepth * 2f), base.transform.rotation); Gizmos.color = Color.cyan; DebugRender.DrawBoxGizmos(this._thisT.position, new Vector3(this._positionSphere * 2f + this._spawnSphere * 2f, this._positionSphereHeight * 2f + this._spawnSphereHeight * 2f, this._positionSphereDepth * 2f + this._spawnSphereDepth * 2f), base.transform.rotation); }