private PourStream CreateStream() { GameObject streamObject = Instantiate(_streamPrefab, _origin.position, Quaternion.identity, _origin); PourStream pourStream = streamObject.GetComponent <PourStream>(); return(pourStream); }
private void StartPour() { _currentStream = CreateStream(); _currentStream.SetColor(_color); _currentStream.SetStreamScale(_streamScale); _currentStream.IgnoreCollider(_objectCollider); _currentStream.Begin(); }
private void EndPour() { _currentStream.End(); _currentStream = null; }