title: How to subtract two Vector3 ?I want to measure the distance between two Object
body: <p>I want to measure the distance of two objects(only in the Z-axis) and if the distance of these objects is = 50 then do something...But I can't subtract two Vector3.</p>
  
  <p>something like this:</p>
  
  <pre><code> Vector3 Bullet;
   Vector3 player;
   public Vector3 distance;
  
   Bullet = new Vector3(0f, 0f, transform.position.z);
   Player = new Vector3(0f, 0f, player.position.z);
  
   if (distance = Bullet - Player)
   {
   Debug.Log("out of range");
   }
  </code></pre>