public void AssignTarget(Drone drone) { var brick = _brickManager.GetNextBrick(); if (brick == null) { drone.target = null; return; } Debug.Assert(drone.target == null); Supply.AssignSupply(drone, supplyTags[brick.tag]); if (drone.supply != null) { brick.Assigned = true; brick.transform.position = drone.supply.transform.position; brick.transform.rotation = drone.supply.transform.rotation; drone.target = brick; } }