예제 #1
0
파일: Pipe.cs 프로젝트: lfrankel/GGJ2016
	/*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);
		}
	}