/*called by PipeManager*/ public void setOutputVessel(Vessel v) { _outputVessel = v; if(_inputVessel == _outputVessel) { Destroy(gameObject); } else { GetComponent<LineRenderer>().SetPosition(1, _outputVessel.getPipeInPoint()); _inputVessel.onPipeConnected(this); AudioManager.getInstance().playOnce(endPipeSound); } }